| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 49 | public function loadFromFile($path) |
||
| 50 | { |
||
| 51 | if (!is_readable($path)) { |
||
| 52 | throw new Loader\Exception\FileIsNotReadableException(); |
||
| 53 | } |
||
| 54 | |||
| 55 | $config = include($path); |
||
| 56 | |||
| 57 | if (!is_array($config)) { |
||
| 58 | throw new Loader\Exception\FileNotReturnAnArrayException(); |
||
| 59 | } |
||
| 60 | |||
| 61 | $this->load($config); |
||
| 62 | } |
||
| 63 | |||
| 72 |