Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.3149 |
Changes | 0 |
1 | <?php |
||
22 | 12 | public function enqueue($exprClass): self |
|
23 | { |
||
24 | 12 | if (! $exprClass instanceof ExprInterface) { |
|
|
|||
25 | throw new ExpressionException(sprintf( |
||
26 | 'The $exprClass variable is not an instance of %s.', |
||
27 | ExprInterface::class |
||
28 | )); |
||
29 | } |
||
30 | |||
31 | 12 | parent::enqueue($exprClass); |
|
32 | |||
33 | 12 | return $this; |
|
34 | } |
||
36 |