| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | 2 | public function __construct(array $inputSources) |
|
| 19 | { |
||
| 20 | // Validate the input sources. |
||
| 21 | 2 | foreach ($inputSources as $inputSource) { |
|
| 22 | 2 | if (!$inputSource instanceof InputSourceInterface) { |
|
| 23 | 1 | throw new InvalidArgumentException('Only input sources are allowed!'); |
|
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | 1 | $this->inputSources = $inputSources; |
|
| 28 | } |
||
| 43 | } |