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