| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function init(Configuration $_configuration, $runLevel) |
||
| 15 | { |
||
| 16 | $configArray = $_configuration->getConfigArray(); |
||
| 17 | $rulesArray = $configArray['rules']; |
||
| 18 | $this->currentRunLevel = $runLevel; |
||
| 19 | |||
| 20 | foreach ($rulesArray as $key => $ruleElement) { |
||
| 21 | if (array_key_exists('runLevel', $ruleElement)) { |
||
| 22 | $this->runLevels[$key] = (int) ($ruleElement['runLevel']); |
||
| 23 | } else { |
||
| 24 | $this->runLevels[$key] = 0; |
||
| 25 | } |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 48 |