Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | class ApplyIfArray implements SpecInterface |
||
14 | { |
||
15 | /** |
||
16 | * @inheritdoc |
||
17 | */ |
||
18 | 5 | public function isSatisfiedBy(ProcessorInterface $processor, ExprInterface $exprClass): bool |
|
19 | { |
||
20 | 5 | if (! in_array($exprClass->getExpression(), ['$in', '$notIn', '$between'], true)) { |
|
21 | 1 | return false; |
|
22 | } |
||
23 | |||
24 | 4 | return true; |
|
25 | } |
||
26 | |||
27 | /** |
||
28 | * @inheritdoc |
||
29 | */ |
||
30 | 4 | public function apply(ProcessorInterface $processor, ExprInterface $exprClass): Builder |
|
38 | ); |
||
39 | } |
||
41 |