| Total Complexity | 6 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | abstract class DateTimeInterface extends DateTimeImmutable implements DataType |
||
| 13 | { |
||
| 14 | 52 | public function DataTypeAsString() : string |
|
| 15 | { |
||
| 16 | 52 | return $this->format(static::ObtainFormat()); |
|
| 17 | } |
||
| 18 | |||
| 19 | 52 | public function jsonSerialize() : string |
|
| 20 | { |
||
| 21 | 52 | return $this->DataTypeAsString(); |
|
| 22 | } |
||
| 23 | |||
| 24 | 6 | public static function DataTypeFromString(string $value) : DataType |
|
| 27 | } |
||
| 28 | |||
| 29 | 12 | public static function ObtainFromString( |
|
| 50 | } |
||
| 51 | |||
| 52 | abstract protected static function ObtainFormat() : string; |
||
| 53 | } |
||
| 54 |