Conditions | 6 |
Paths | 5 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | private function handleProperties(array $array) |
||
11 | { |
||
12 | foreach ($array as $property => $value) { |
||
13 | if (property_exists($this, $property)) { |
||
14 | if ($this->{$property} === null) { |
||
15 | $this->{$property} = $value; |
||
16 | } elseif (is_array($this->{$property}) && !count($this->{$property})) { |
||
17 | $this->{$property} = $value; |
||
18 | } |
||
19 | } |
||
20 | } |
||
21 | } |
||
22 | } |
||
23 |