Temporal.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Framework\Support\Facades\DateTime; |
| 4 | |
| 5 | use DateTime; |
| 6 | use DateTimeInterface; |
| 7 | use Give\Framework\Support\Facades\Facade; |
| 8 | |
| 9 | /** |
| 10 | * @since 2.19.6 |
| 11 | * |
| 12 | * @method static toDateTime(string $date): DateTimeInterface |
| 13 | * @method static getCurrentDateTime(): DateTimeInterface |
| 14 | * @method static getFormattedDateTime(DateTime $dateTime): string |
| 15 | * @method static getCurrentFormattedDateForDatabase(): string |
| 16 | * @method static withoutMicroseconds(DateTimeInterface $dateTime): DateTimeInterface |
| 17 | */ |
| 18 | class Temporal extends Facade |
| 19 | { |
| 20 | protected function getFacadeAccessor() |
| 21 | { |
| 22 | return TemporalFacade::class; |
| 23 | } |
| 24 | } |
| 25 |