Total Complexity | 4 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | class ColumnExpressionCollection implements Column |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * Column expression collection. |
||
18 | * |
||
19 | * @var ColumnExpression[] |
||
20 | */ |
||
21 | private $columns; |
||
22 | |||
23 | /** |
||
24 | * Sets the input values. |
||
25 | * |
||
26 | * @param ColumnExpression[] $columns Column expression collection. |
||
27 | */ |
||
28 | 1 | public function __construct(array $columns) |
|
29 | { |
||
30 | 1 | $this->setColumns($columns); |
|
31 | 1 | } |
|
32 | |||
33 | /** |
||
34 | * Sets column expression collection. |
||
35 | * Returns the current object. |
||
36 | * |
||
37 | * @param ColumnExpression[] $columns Column expression collection. |
||
38 | * |
||
39 | * @return self |
||
40 | */ |
||
41 | 1 | private function setColumns(array $columns) |
|
42 | { |
||
43 | 1 | $this->columns = $columns; |
|
44 | 1 | return $this; |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * Gets column expression collection. |
||
49 | * |
||
50 | * @return ColumnExpression[] |
||
51 | */ |
||
52 | 1 | private function getColumns() |
|
55 | } |
||
56 | |||
57 | /** |
||
58 | * Returns data as an associative array. |
||
59 | * |
||
60 | * @return array |
||
61 | */ |
||
62 | public function toArray() |
||
67 | } |
||
68 | } |
||
69 |