Total Complexity | 4 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
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 |