| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Date extends InlineNode |
||
| 13 | { |
||
| 14 | protected string $type = 'date'; |
||
| 15 | private string $timestamp; |
||
| 16 | |||
| 17 | public function __construct(string $timestamp) |
||
| 18 | { |
||
| 19 | $this->timestamp = $timestamp; |
||
| 20 | } |
||
| 21 | |||
| 22 | public static function load(array $data): self |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getTimestamp(): string |
||
| 30 | { |
||
| 31 | return $this->timestamp; |
||
| 32 | } |
||
| 33 | |||
| 34 | protected function attrs(): array |
||
| 38 | ]; |
||
| 39 | } |
||
| 41 |