| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class EntityTable implements EntityInterface |
||
| 12 | { |
||
| 13 | private const BLOCK = <<<BLOCK |
||
| 14 | class %s { |
||
| 15 | %s |
||
| 16 | } |
||
| 17 | BLOCK; |
||
| 18 | |||
| 19 | public const INDENT = ' '; |
||
| 20 | |||
| 21 | private string $title; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var Annotation[]|Column[]|Method[] |
||
| 25 | */ |
||
| 26 | private array $columns = []; |
||
| 27 | |||
| 28 | public function __construct(string $title) |
||
| 29 | { |
||
| 30 | $this->title = $title; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function addColumn(Column $column): void |
||
| 34 | { |
||
| 35 | $this->columns[] = $column; |
||
| 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 |
||
| 57 | } |
||
| 58 | } |
||
| 59 |