| @@ 37-46 (lines=10) @@ | ||
| 34 | /** |
|
| 35 | * {@inheritdoc} |
|
| 36 | */ |
|
| 37 | public function getExpression(string $fieldName, FilterDataInterface $data): Expression |
|
| 38 | { |
|
| 39 | $comparator = $data->getComparator() ?: self::TYPE_EQUAL; |
|
| 40 | ||
| 41 | return Query::comparison( |
|
| 42 | $comparator, |
|
| 43 | $fieldName, |
|
| 44 | $data->getValue() |
|
| 45 | ); |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * {@inheritdoc} |
|
| @@ 59-68 (lines=10) @@ | ||
| 56 | /** |
|
| 57 | * {@inheritdoc} |
|
| 58 | */ |
|
| 59 | public function getExpression(string $fieldName, FilterDataInterface $data): Expression |
|
| 60 | { |
|
| 61 | $comparator = $data->getComparator() ?: self::TYPE_EQUAL; |
|
| 62 | ||
| 63 | return Query::comparison( |
|
| 64 | self::$comparatorMap[$comparator], |
|
| 65 | $fieldName, |
|
| 66 | $this->getValue($comparator, $data->getValue()) |
|
| 67 | ); |
|
| 68 | } |
|
| 69 | ||
| 70 | /** |
|
| 71 | * {@inheritdoc} |
|