| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | final class QueryValidator implements QueryValidatorInterface |
||
| 9 | { |
||
| 10 | |||
| 11 | public function getDefiniteQuery(QueryInterface $query): QueryInterface |
||
| 12 | { |
||
| 13 | if (!$query->getCapabilities()->isDefinite()) { |
||
| 14 | throw new Exception\IndefiniteQueryException($query); |
||
| 15 | } |
||
| 16 | |||
| 17 | return $query; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function getPathQuery(QueryInterface $query): QueryInterface |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getDefinitePathQuery(QueryInterface $query): QueryInterface |
||
| 34 |