Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | final class Like implements FilterInterface |
||
13 | { |
||
14 | /** |
||
15 | * @param string $field Name of the field to compare. |
||
16 | * @param string $value Value to like-compare with. |
||
17 | */ |
||
18 | 5 | public function __construct(private string $field, private string $value) |
|
19 | { |
||
20 | 5 | } |
|
21 | |||
22 | 5 | public function toCriteriaArray(): array |
|
23 | { |
||
24 | 5 | return [self::getOperator(), $this->field, $this->value]; |
|
25 | } |
||
26 | |||
27 | 106 | public static function getOperator(): string |
|
30 | } |
||
31 | } |
||
32 |