| 1 | <?php declare (strict_types = 1); |
||
| 31 | class DateTime extends DateTimeImmutable implements JsonSerializable |
||
| 32 | { |
||
| 33 | /** DateTime format */ |
||
| 34 | const JSON_API_FORMAT = \DateTime::ISO8601; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param DateTimeInterface $dateTime |
||
| 38 | * |
||
| 39 | * @return DateTime |
||
| 40 | * |
||
| 41 | * @throws Exception |
||
| 42 | */ |
||
| 43 | 37 | public static function createFromDateTime(DateTimeInterface $dateTime): self |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @inheritdoc |
||
| 55 | */ |
||
| 56 | 19 | public function jsonSerialize() |
|
| 60 | } |
||
| 61 |