| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class CascadeExtraction implements ExtractionInterface |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var array|\Level23\Druid\Extractions\ExtractionInterface[] |
||
| 10 | */ |
||
| 11 | protected $extractions = []; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * CascadeExtraction constructor. |
||
| 15 | * |
||
| 16 | * @param \Level23\Druid\Extractions\ExtractionInterface ...$extractions |
||
| 17 | */ |
||
| 18 | 2 | public function __construct(...$extractions) |
|
| 21 | 2 | } |
|
| 22 | |||
| 23 | /** |
||
| 24 | * Add an extraction function to our list of functions to apply. |
||
| 25 | * |
||
| 26 | * @param \Level23\Druid\Extractions\ExtractionInterface $extraction |
||
| 27 | */ |
||
| 28 | 2 | public function addExtraction(ExtractionInterface $extraction) |
|
| 31 | 2 | } |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Return the Extraction Function so it can be used in a druid query. |
||
| 35 | * |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | 2 | public function toArray(): array |
|
| 47 | } |