| Total Complexity | 3 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 10 | class Table extends Element |
||
| 11 | { |
||
| 12 | public function render(array $parameters, HTMLNode $previous): HTMLNode |
||
| 13 | { |
||
| 14 | if ($parameters[HTMLTable::STRIPED] ?? false) { |
||
| 15 | $previous->addAttribute('class', 'striped'); |
||
| 16 | } |
||
| 17 | |||
| 18 | return $previous; |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function getMetadata(): Metadata |
||
| 25 | } |
||
| 26 | } |
||
| 27 |