| Conditions | 3 |
| Paths | 3 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | protected function checkSingleElementInput(QueryResult $entryObject) |
||
| 41 | { |
||
| 42 | if (!$entryObject->results instanceof Model) { |
||
| 43 | $res = $entryObject->results; |
||
| 44 | $msg = is_array($res) ? 'Entry object must be single Model' : get_class($res); |
||
| 45 | throw new InvalidOperationException($msg); |
||
| 46 | } |
||
| 49 |