| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Relation implements \Stringable |
||
| 8 | { |
||
| 9 | use StringFormatter; |
||
| 10 | |||
| 11 | private const BLOCK = '%s %s %s : %s'; |
||
| 12 | |||
| 13 | private string $parent; |
||
| 14 | private string $children; |
||
| 15 | private string $comment; |
||
| 16 | private string $arrow; |
||
| 17 | private bool $isNullable; |
||
| 18 | |||
| 19 | public function __construct( |
||
| 20 | string $parent, |
||
| 21 | string $children, |
||
| 22 | string $comment, |
||
| 23 | string $arrow, |
||
| 24 | bool $isNullable |
||
| 25 | ) { |
||
| 26 | $this->parent = $this->resolveString($parent); |
||
| 27 | $this->children = $this->resolveString($children); |
||
| 28 | $this->comment = $comment; |
||
| 29 | $this->arrow = $arrow; |
||
| 30 | $this->isNullable = $isNullable; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function __toString(): string |
||
| 40 | } |
||
| 41 | } |
||
| 42 |