| 1 | <?php namespace Limoncello\Flute\Types; |
||
| 29 | class DateTime extends DateTimeImmutable implements JsonSerializable |
||
| 30 | { |
||
| 31 | /** DateTime format */ |
||
| 32 | const JSON_API_FORMAT = \DateTime::ISO8601; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param DateTimeInterface $dateTime |
||
| 36 | * |
||
| 37 | * @return DateTime |
||
| 38 | * |
||
| 39 | * @throws Exception |
||
| 40 | */ |
||
| 41 | 37 | public static function createFromDateTime(DateTimeInterface $dateTime): self |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @inheritdoc |
||
| 53 | */ |
||
| 54 | 19 | public function jsonSerialize() |
|
| 58 | } |
||
| 59 |