Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
36 | 25 | public function __set(string $name, $value) |
|
37 | { |
||
38 | 25 | if (!isset($this->properties[$name])) { |
|
39 | 25 | $this->properties[$name] = $value; |
|
40 | } else { |
||
41 | 7 | if (is_array($this->properties[$name])) { |
|
42 | 7 | $this->properties[$name][] = $value; |
|
43 | } else { |
||
44 | 7 | $this->properties[$name] = [$this->properties[$name], $value]; |
|
45 | } |
||
75 |