| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | protected function setPropertiesByKey($key, array $properties, array $mappings) |
||
| 44 | { |
||
| 45 | foreach ($properties as $_key => $value) { |
||
| 46 | if (array_key_exists($_key, $mappings)) { |
||
| 47 | if (is_array($value)) { |
||
| 48 | $this->setPropertiesByKey($key, $value, $mappings[$_key]); |
||
| 49 | } else { |
||
| 50 | $mappings[$_key]($key, $value); |
||
| 51 | } |
||
| 52 | } |
||
| 53 | } |
||
| 54 | } |
||
| 55 | } |
||
| 56 |