| Total Complexity | 6 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 84.62% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class FilterSpecResolver implements ResolverInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var SpecInterface[] |
||
| 17 | */ |
||
| 18 | protected $applicableSpecs = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * {@inheritdoc} |
||
| 22 | */ |
||
| 23 | 12 | public function registerAll(array $filterSpecs): self |
|
| 24 | { |
||
| 25 | 12 | foreach ($filterSpecs as $spec) { |
|
| 26 | 12 | $this->register($spec); |
|
| 27 | } |
||
| 28 | |||
| 29 | 12 | return $this; |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | 12 | public function register(string $filterStrategy): self |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | 12 | public function resolve(ProcessorInterface $processor, ExprInterface $exprClass): SpecInterface |
|
| 55 | ); |
||
| 56 | } |
||
| 58 |