| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 7 | private function assertAreSerializers( array $serializers ) { |
|
| 30 | 7 | foreach ( $serializers as $serializer ) { |
|
| 31 | 5 | if ( !( $serializer instanceof DispatchableSerializer ) ) { |
|
| 32 | 1 | throw new InvalidArgumentException( |
|
| 33 | 1 | 'Got an object that is not an instance of DispatchableSerializer' |
|
| 34 | ); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | 6 | } |
|
| 38 | |||
| 69 |