| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class TransformBuilder |
||
| 9 | { |
||
| 10 | use HasFilter; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var array|\Level23\Druid\Transforms\TransformInterface[] |
||
| 14 | */ |
||
| 15 | protected array $transforms = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Build a new transform. |
||
| 19 | * |
||
| 20 | * For all the available options in expressions, see this link: |
||
| 21 | * |
||
| 22 | * @see https://druid.apache.org/docs/latest/misc/math-expr.html |
||
| 23 | * |
||
| 24 | * @param string $expression |
||
| 25 | * @param string $as |
||
| 26 | * |
||
| 27 | * @return self |
||
| 28 | */ |
||
| 29 | 2 | public function transform(string $expression, string $as): self |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return array|\Level23\Druid\Transforms\TransformInterface[] |
||
| 38 | */ |
||
| 39 | 5 | public function getTransforms(): array |
|
| 42 | } |
||
| 43 | } |