Total Complexity | 6 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class EntityTable implements EntityInterface |
||
12 | { |
||
13 | private string $title; |
||
14 | private array $rows = []; |
||
15 | |||
16 | private const BLOCK = <<<BLOCK |
||
17 | class %s { |
||
18 | %s |
||
19 | } |
||
20 | BLOCK; |
||
21 | |||
22 | public const INDENT = ' '; |
||
23 | |||
24 | public function __construct(string $title) |
||
25 | { |
||
26 | $this->title = $title; |
||
27 | } |
||
28 | |||
29 | public function addRow(Row $row): void |
||
32 | } |
||
33 | |||
34 | public function addMethod(Method $method): void |
||
37 | } |
||
38 | |||
39 | public function addAnnotation(Annotation $annotation): void |
||
42 | } |
||
43 | |||
44 | public function __toString(): string |
||
57 |