| Conditions | 5 | 
| Paths | 5 | 
| Total Lines | 13 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 30 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 26 | public function setParameters($parameters)  | 
            ||
| 27 |     { | 
            ||
| 28 |         if (is_array($parameters)) { | 
            ||
| 29 |             foreach ($parameters as $name => $value) { | 
            ||
| 30 | $method = 'set' . ucfirst(Helper::camelCase($name));  | 
            ||
| 31 |                 if (method_exists($this, $method)) { | 
            ||
| 32 | $this->$method($value);  | 
            ||
| 33 |                 } elseif (property_exists($this, $name)) { | 
            ||
| 34 |                     $this->{$name} = $value; | 
            ||
| 35 | }  | 
            ||
| 36 | }  | 
            ||
| 37 | }  | 
            ||
| 38 | }  | 
            ||
| 39 | |||
| 48 |