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