| Total Complexity | 5 |
| Total Lines | 42 |
| 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 | private const BLOCK = <<<BLOCK |
||
| 13 | class %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 addMethod(string $name, string ...$params): void |
||
| 36 | } |
||
| 37 | |||
| 38 | public function __toString(): string |
||
| 51 |