| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 15 | public function configure($config) |
|
| 31 | { |
||
| 32 | 15 | if (!is_array($config) && !($config instanceof Traversable)) { |
|
| 33 | 1 | throw new InvalidConfigException( |
|
| 34 | 'You can only load definitions from an array or an object that implements Traversable interface.' |
||
| 35 | 1 | ); |
|
| 36 | } |
||
| 37 | |||
| 38 | 14 | $this->configureMany($config); |
|
| 39 | 14 | } |
|
| 40 | |||
| 48 |