| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 154 | public function __construct(array $opsLists) |
|
| 27 | { |
||
| 28 | 154 | foreach ($opsLists as $opList) { |
|
| 29 | 154 | if (!($opList instanceof OperationContainer)) { |
|
| 30 | 154 | throw new \InvalidArgumentException("Invalid argument: Array of OperationContainer required"); |
|
| 31 | } |
||
| 32 | } |
||
| 33 | 154 | $this->container = $opsLists; |
|
| 34 | 154 | $this->count = count($opsLists); |
|
| 35 | 154 | } |
|
| 36 | |||
| 117 |