| Conditions | 5 |
| Paths | 4 |
| Total Lines | 20 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 5.0488 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 21 | ||
| 19 | public function parse(array $options = []) |
||
| 20 | 21 | { |
|
| 21 | 21 | $this->parser = new Parser; |
|
| 22 | 7 | ||
| 23 | 14 | $this->parser->parse($this->file); |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | 21 | * Return the parser |
|
| 28 | 21 | */ |
|
| 29 | public function getParser() |
||
| 30 | { |
||
| 31 | 21 | return $this->parser; |
|
| 32 | 21 | } |
|
| 33 | 21 | ||
| 34 | 14 | public function toEnv() |
|
| 35 | 21 | { |
|
| 36 | 14 | if (!isset($this->parser)) { |
|
| 37 | 21 | throw new \LogicException("You must call parse() before", 1); |
|
| 38 | } |
||
| 70 |