| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class QueryBuilderException extends \Exception |
||
| 13 | { |
||
| 14 | public const UNSUPPORTED_OPERATOR = "unsupported operator %s"; |
||
| 15 | public const UNSUPPORTED_ATTRIBUTE = "unsupported attribute %s"; |
||
| 16 | public const UNSUPPORTED_CONDITION = "unsupported condition %s"; |
||
| 17 | /** |
||
| 18 | * @throws QueryBuilderException |
||
| 19 | */ |
||
| 20 | 1 | public static function unsupportedOperator(string $operator) |
|
| 21 | { |
||
| 22 | 1 | throw new static(sprintf(self::UNSUPPORTED_OPERATOR, $operator)); |
|
| 23 | } |
||
| 24 | /** |
||
| 25 | * @throws QueryBuilderException |
||
| 26 | */ |
||
| 27 | 1 | public static function unsupportedAttribute(string $name) |
|
| 30 | } |
||
| 31 | /** |
||
| 32 | * @throws QueryBuilderException |
||
| 33 | */ |
||
| 34 | 1 | public static function unsupportedCondition(string $name) |
|
| 37 | } |
||
| 38 | } |