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 DateTimeInterface toDateTime(string $date) |
| 13 | * @method static DateTimeInterface getCurrentDateTime() |
| 14 | * @method static string getFormattedDateTime(DateTimeInterface $dateTime) |
| 15 | * @method static string getCurrentFormattedDateForDatabase() |
| 16 | * @method static DateTimeInterface withoutMicroseconds(DateTimeInterface $dateTime) |
| 17 | */ |
| 18 | class Temporal extends Facade |
| 19 | { |
| 20 | protected function getFacadeAccessor(): string |
| 21 | { |
| 22 | return TemporalFacade::class; |
| 23 | } |
| 24 | } |
| 25 |