Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class ExpressionTransform implements TransformInterface |
||
7 | { |
||
8 | protected string $outputName; |
||
9 | |||
10 | protected string $expression; |
||
11 | |||
12 | /** |
||
13 | * ExpressionTransform constructor. |
||
14 | * |
||
15 | * @param string $expression |
||
16 | * @param string $outputName |
||
17 | */ |
||
18 | 6 | public function __construct(string $expression, string $outputName) |
|
22 | } |
||
23 | |||
24 | /** |
||
25 | * Return the transform in such a way so that we can use it in a druid query. |
||
26 | * |
||
27 | * @return array<string,string> |
||
28 | */ |
||
29 | 4 | public function toArray(): array |
|
37 | } |