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