| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class TextColor extends MarkNode |
||
| 13 | { |
||
| 14 | protected string $type = 'textColor'; |
||
| 15 | private string $color = 'black'; |
||
| 16 | |||
| 17 | public function __construct(string $color = 'black') |
||
| 20 | } |
||
| 21 | |||
| 22 | public static function load(array $data): self |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getColor(): string |
||
| 33 | } |
||
| 34 | |||
| 35 | protected function attrs(): array |
||
| 42 |