| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | final class EntityTable implements EntityInterface |
||
| 8 | { |
||
| 9 | private string $title; |
||
| 10 | private array $rows = []; |
||
| 11 | |||
| 12 | public const BLOCK = <<<BLOCK |
||
| 13 | %s { |
||
| 14 | %s |
||
| 15 | } |
||
| 16 | BLOCK; |
||
| 17 | |||
| 18 | public const INDENT = ' '; |
||
| 19 | public const SEPARATOR = ' '; |
||
| 20 | |||
| 21 | public function __construct(string $title) |
||
| 22 | { |
||
| 23 | $this->title = $title; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function addRow(string ...$values): void |
||
| 29 | } |
||
| 30 | |||
| 31 | public function toString(): string |
||
| 44 |