| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | 5 | public function setParent(AbstractComponent $parent, ?bool $cascadeValidComponent = null): void |
|
| 50 | { |
||
| 51 | 5 | $this->parent = $parent; |
|
| 52 | 5 | if ($cascadeValidComponent !== false) { |
|
| 53 | // convert to bool again for $force (null becomes false) |
||
| 54 | 5 | $this->cascadeValidComponents($parent, (bool) $cascadeValidComponent); |
|
| 55 | } |
||
| 58 |