Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function validatePlugin($plugin) |
||
36 | { |
||
37 | if (!$plugin instanceof TransformerInterface) { |
||
38 | throw new Exception\RuntimeException(sprintf( |
||
39 | 'Expected class %s. Actual type %s class %s.', |
||
40 | TransformerInterface::class, |
||
41 | gettype($plugin), |
||
42 | is_object($plugin) ? get_class($plugin) : null |
||
43 | )); |
||
44 | } |
||
45 | } |
||
46 | } |
||
47 |