Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | protected function validateSelector(PaginatorAwareInterface $selector) |
||
23 | { |
||
24 | if (!$selector instanceof RecordSelector && !$selector instanceof DocumentSelector) { |
||
25 | throw new InvalidSelectorException( |
||
26 | "Only instance of Record/Document selectors are allowed, '" |
||
27 | . get_class($selector) . "'" |
||
28 | ); |
||
29 | } |
||
30 | } |
||
31 | } |