| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3.0261 |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 35 | 150 | public function __construct(array $processors) |
|
| 36 | { |
||
| 37 | 150 | foreach ($processors as $processor) { |
|
| 38 | 132 | if (false === $processor instanceof ProcessorInterface) { |
|
| 39 | throw new \InvalidArgumentException('Expected a Nelmio\Alice\ProcessorInterface instance'); |
||
| 40 | } |
||
| 41 | 150 | } |
|
| 42 | |||
| 43 | 150 | $this->processors = $processors; |
|
| 44 | 150 | } |
|
| 45 | |||
| 54 |