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