Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | 6 | public function __construct($options = null) |
|
17 | { |
||
18 | 6 | parent::__construct($options); |
|
19 | |||
20 | 4 | if ($this->environment !== null && !$this->environment instanceof \Twig_Environment) { |
|
21 | 1 | throw new InvalidOptionsException(sprintf('Option "environment" must be null or a Twig_Environment instance for constraint %s', __CLASS__), array('environment')); |
|
22 | } |
||
23 | 3 | } |
|
24 | |||
30 |