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