| Conditions | 5 | 
| Paths | 5 | 
| Total Lines | 9 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 17 | public function setParameters($parameters) | ||
| 18 |     { | ||
| 19 |         if (is_array($parameters)) { | ||
| 20 |             foreach ($parameters as $name => $value) { | ||
| 21 | $method = 'set' . ucfirst(Helper::camelCase($name)); | ||
| 22 |                 if (method_exists($this, $method)) { | ||
| 23 | $this->$method($value); | ||
| 24 |                 } elseif (property_exists($this, $name)) { | ||
| 25 |                     $this->{$name} = $value; | ||
| 26 | } | ||
| 31 |