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