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