Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
35 | 2 | private function checkValueIsValidOperationObject($value): void |
|
36 | { |
||
37 | 2 | if ($this->isNotOperationObject($value)) { |
|
38 | 1 | throw new UnsupportedBatchOperationException( |
|
39 | 1 | sprintf( |
|
40 | 1 | 'Given batch operation of class `%s` should implement %s interface', |
|
41 | 1 | \get_class($value), |
|
42 | 1 | OperationInterface::class) |
|
43 | ); |
||
52 |