Total Complexity | 4 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class SelectionSetNode extends AbstractNode implements NodeInterface |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $kind = NodeKindEnum::SELECTION_SET; |
||
15 | |||
16 | /** |
||
17 | * @var SelectionNodeInterface[] |
||
18 | */ |
||
19 | protected $selections; |
||
20 | |||
21 | /** |
||
22 | * @return SelectionNodeInterface[] |
||
23 | */ |
||
24 | public function getSelections(): array |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return array |
||
31 | */ |
||
32 | public function getSelectionsAsArray(): array |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param SelectionNodeInterface[] $selections |
||
41 | * @return SelectionSetNode |
||
42 | */ |
||
43 | public function setSelections(array $selections): SelectionSetNode |
||
44 | { |
||
45 | $this->selections = $selections; |
||
46 | return $this; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | public function toArray(): array |
||
58 | ]; |
||
59 | } |
||
61 |