Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3.1406 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function __set(string $name, mixed $value): void |
||
34 | 56 | { |
|
35 | if (!\array_key_exists($name, $this->__cycle_orm_rel_map->getRelations())) { |
||
36 | 56 | $this->$name = $value; |
|
37 | return; |
||
38 | } |
||
39 | |||
40 | if ($value instanceof ReferenceInterface) { |
||
41 | 56 | $this->__cycle_orm_rel_data[$name] = $value; |
|
42 | 56 | return; |
|
43 | 56 | } |
|
44 | unset($this->__cycle_orm_rel_data[$name]); |
||
45 | 56 | ||
46 | $this->$name = $value; |
||
47 | 56 | } |
|
56 |