| Total Complexity | 1 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 8 | abstract class AbstractQueryBuilderAdapter implements QueryBuilderAdapterInterface |
||
| 9 | { |
||
| 10 | private const OPERATORS = [ |
||
| 11 | FilterableInterface::EQUAL => '$eq', |
||
| 12 | FilterableInterface::NOT_EQUAL => '$ne', |
||
| 13 | FilterableInterface::IN => '$in', |
||
| 14 | FilterableInterface::NOT_IN => '$nin', |
||
| 15 | FilterableInterface::LESS_THEN => '$lt', |
||
| 16 | FilterableInterface::LESS_THEN_OR_EQUAL => '$lte', |
||
| 17 | FilterableInterface::GREATER_THEN => '$gt', |
||
| 18 | FilterableInterface::GREATER_THEN_OR_EQUAL => '$gte', |
||
| 19 | FilterableInterface::LIKE => '$regex', |
||
| 20 | ]; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $alias |
||
| 24 | * |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | protected function getOperator(string $alias): string |
||
| 32 |