Total Complexity | 5 |
Total Lines | 61 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class ListValueNode extends AbstractNode implements ValueNodeInterface |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $kind = NodeKindEnum::LIST; |
||
15 | |||
16 | /** |
||
17 | * @var array|ValueNodeInterface[] |
||
18 | */ |
||
19 | protected $values; |
||
20 | |||
21 | /** |
||
22 | * @return array|ValueNodeInterface[] |
||
23 | */ |
||
24 | public function getValues(): array |
||
25 | { |
||
26 | return $this->values; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return array |
||
31 | */ |
||
32 | public function getValuesAsArray(): array |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param array|ValueNodeInterface[] $values |
||
41 | * @return $this |
||
42 | */ |
||
43 | public function setValues(array $values) |
||
44 | { |
||
45 | $this->values = $values; |
||
46 | return $this; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | public function toArray(): array |
||
58 | ]; |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * @inheritdoc |
||
63 | */ |
||
64 | public function __toString(): string |
||
71 |