| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class ApplyComparison implements SpecInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @inheritdoc |
||
| 17 | */ |
||
| 18 | 12 | public function isSatisfiedBy(ProcessorInterface $processor, ExprInterface $exprClass): bool |
|
| 19 | { |
||
| 20 | /** @var EloquentProcessor $processor */ |
||
| 21 | 12 | if (! in_array($exprClass->getExpression(), $processor::getComparisonMethods(), false)) { |
|
| 22 | 5 | return false; |
|
| 23 | } |
||
| 24 | |||
| 25 | 7 | return true; |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @inheritdoc |
||
| 30 | */ |
||
| 31 | 7 | public function apply(ProcessorInterface $processor, ExprInterface $exprClass): Builder |
|
| 40 | ); |
||
| 41 | } |
||
| 43 |