| Total Complexity | 2 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class LikeFilter implements FilterInterface |
||
| 15 | { |
||
| 16 | protected string $dimension; |
||
| 17 | |||
| 18 | protected string $pattern; |
||
| 19 | |||
| 20 | protected string $escapeCharacter; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * LikeFilter constructor. |
||
| 24 | * |
||
| 25 | * @param string $dimension The dimension to filter on |
||
| 26 | * @param string $pattern LIKE pattern, such as "foo%" or "___bar". |
||
| 27 | * @param string $escapeCharacter An escape character that can be used to escape special |
||
| 28 | * characters. |
||
| 29 | */ |
||
| 30 | 6 | public function __construct( |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Return the filter as it can be used in the druid query. |
||
| 42 | * |
||
| 43 | * @return array<string,string|array<string,string|int|bool|array<mixed>>> |
||
| 44 | */ |
||
| 45 | 5 | public function toArray(): array |
|
| 54 | } |