Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 8 | ||
Bugs | 2 | Features | 1 |
1 | <?php |
||
32 | private static function assertValidOperationContent($operationContent) |
||
33 | { |
||
34 | if (!($operationContent instanceof \stdClass)) { |
||
35 | throw new Operation\Exception('Operation Content is not an object'); |
||
36 | } |
||
37 | |||
38 | if (!isset($operationContent->op)) { |
||
39 | throw new Operation\Exception('All Operations must contain exactly one "op" member'); |
||
40 | } |
||
41 | |||
42 | self::assertKnownOperation($operationContent->op); |
||
43 | } |
||
44 | |||
61 |