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