| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class TransformCollection extends BaseCollection |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * DimensionCollection constructor. |
||
| 15 | * |
||
| 16 | * @param \Level23\Druid\Transforms\TransformInterface ...$transforms |
||
| 17 | */ |
||
| 18 | 7 | public function __construct(TransformInterface ...$transforms) |
|
| 19 | { |
||
| 20 | 7 | $this->items = array_values($transforms); |
|
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * We only accept objects of this type. |
||
| 25 | * |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 1 | public function getType(): string |
|
| 29 | { |
||
| 30 | 1 | return TransformInterface::class; |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Return an array representation of our items |
||
| 35 | * |
||
| 36 | * @return array<int,array<mixed>> |
||
| 37 | */ |
||
| 38 | 4 | public function toArray(): array |
|
| 41 | } |
||
| 42 | } |