Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class EntityArrow implements EntityInterface |
||
8 | { |
||
9 | private string $title; |
||
10 | private array $arrows = []; |
||
11 | |||
12 | public const BLOCK = '%s %s %s : %s'; |
||
13 | public const NOT_NULLABLE = '||--|{'; |
||
14 | public const NULLABLE = '||--o{'; |
||
15 | |||
16 | public function __construct(string $title) |
||
17 | { |
||
18 | $this->title = $title; |
||
19 | } |
||
20 | |||
21 | public function addArrow(string $children, string $relation, bool $isNullable = false): void |
||
24 | } |
||
25 | |||
26 | public function toString(): string |
||
41 | } |
||
42 | } |
||
43 |