|
8 | 8 | use Lkrms\Concern\TWritable; |
9 | 9 | use Lkrms\Contract\Buildable; |
10 | 10 | use Lkrms\Contract\ICollection; |
11 | | -use Lkrms\Contract\IDateFormatter; |
12 | 11 | use Lkrms\Contract\IReadable; |
13 | 12 | use Lkrms\Contract\IWritable; |
14 | 13 | use Lkrms\Curler\Catalog\CurlerProperty; |
|
28 | 27 | use Lkrms\Iterator\RecursiveMutableGraphIterator; |
29 | 28 | use Lkrms\Store\CacheStore; |
30 | 29 | use Lkrms\Support\Catalog\MimeType; |
31 | | -use Lkrms\Support\DateFormatter; |
| 30 | +use Lkrms\Support\Date\DateFormatter; |
| 31 | +use Lkrms\Support\Date\DateFormatterInterface; |
32 | 32 | use Lkrms\Utility\Arr; |
33 | 33 | use Lkrms\Utility\Compute; |
34 | 34 | use Lkrms\Utility\Convert; |
|
78 | 78 | * @property bool $ExpectJson Request JSON from upstream? |
79 | 79 | * @property bool $PostJson Use JSON to serialize POST/PUT/PATCH/DELETE data? |
80 | 80 | * @property bool $PreserveKeys Suppress removal of numeric indices from serialized lists? |
81 | | - * @property IDateFormatter|null $DateFormatter Specify the date format and timezone used upstream |
| 81 | + * @property DateFormatterInterface|null $DateFormatter Specify the date format and timezone used upstream |
82 | 82 | * @property string|null $UserAgent Override the default User-Agent header |
83 | 83 | * @property bool $AlwaysPaginate Pass every response to the pager? |
84 | 84 | * @property bool $ObjectAsArray Return deserialized objects as associative arrays? |
@@ -359,7 +359,7 @@ final class Curler implements IReadable, IWritable, Buildable |
359 | 359 | /** |
360 | 360 | * Specify the date format and timezone used upstream |
361 | 361 | * |
362 | | - * @var IDateFormatter|null |
| 362 | + * @var DateFormatterInterface|null |
363 | 363 | */ |
364 | 364 | protected $DateFormatter; |
365 | 365 |
|
@@ -465,7 +465,7 @@ public function __construct( |
465 | 465 | bool $expectJson = true, |
466 | 466 | bool $postJson = true, |
467 | 467 | bool $preserveKeys = false, |
468 | | - ?IDateFormatter $dateFormatter = null, |
| 468 | + ?DateFormatterInterface $dateFormatter = null, |
469 | 469 | ?string $userAgent = null, |
470 | 470 | bool $alwaysPaginate = false, |
471 | 471 | bool $objectAsArray = true |
@@ -924,7 +924,7 @@ private function getCookieKey(): ?string |
924 | 924 | : null; |
925 | 925 | } |
926 | 926 |
|
927 | | - private function getDateFormatter(): IDateFormatter |
| 927 | + private function getDateFormatter(): DateFormatterInterface |
928 | 928 | { |
929 | 929 | return $this->DateFormatter |
930 | 930 | ?: ($this->DateFormatter = new DateFormatter()); |
|
0 commit comments