| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class JavascriptFilter implements FilterInterface |
||
| 17 | { |
||
| 18 | protected string $dimension; |
||
| 19 | |||
| 20 | protected string $javascriptFunction; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * JavascriptFilter constructor. |
||
| 24 | * |
||
| 25 | * @param string $dimension |
||
| 26 | * @param string $javascriptFunction |
||
| 27 | */ |
||
| 28 | 1 | public function __construct( |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Return the filter as it can be used in the druid query. |
||
| 38 | * |
||
| 39 | * @return array<string,string|array<string,string|int|bool|array<mixed>>> |
||
| 40 | */ |
||
| 41 | 1 | public function toArray(): array |
|
| 49 | } |