Total Complexity | 6 |
Total Lines | 49 |
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 addAnnotation(string $name): void |
||
43 | } |
||
44 | |||
45 | public function __toString(): string |
||
58 |