| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function configure($parameters = array()) |
||
| 41 | { |
||
| 42 | foreach ($parameters as $key => $value) { |
||
| 43 | if (in_array($key, $this->parametersList)) { |
||
| 44 | $this->$key = $value; |
||
| 45 | } else { |
||
| 46 | throw new InvalidArgumentException("Unknown configuration property : " . get_called_class() . "->" . $key); |
||
| 47 | } |
||
| 48 | } |
||
| 49 | |||
| 50 | $this->init(); |
||
| 51 | } |
||
| 66 |