Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3.3332 |
Changes | 0 |
1 | <?php |
||
45 | 12 | public function resolve(ProcessorInterface $processor, ExprInterface $exprClass): SpecInterface |
|
46 | { |
||
47 | 12 | foreach ($this->applicableSpecs as $spec) { |
|
48 | 12 | if ($spec->isSatisfiedBy($processor, $exprClass)) { |
|
49 | 12 | return $spec; |
|
50 | } |
||
51 | } |
||
52 | |||
53 | throw new ExpressionException( |
||
54 | 'Can\'t find how to apply operator defined in class: ' . \get_class($exprClass) |
||
55 | ); |
||
58 |