Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class SchemaDefinitionNode extends AbstractNode implements TypeSystemDefinitionNodeInterface |
||
11 | { |
||
12 | |||
13 | use DirectivesTrait; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $kind = NodeKindEnum::SCHEMA_DEFINITION; |
||
19 | |||
20 | /** |
||
21 | * @var OperationTypeDefinitionNode[] |
||
22 | */ |
||
23 | protected $operationTypes; |
||
24 | |||
25 | /** |
||
26 | * @return OperationTypeDefinitionNode[] |
||
27 | */ |
||
28 | public function getOperationTypes(): array |
||
31 | } |
||
32 | |||
33 | public function getOperationTypesAsArray(): array |
||
34 | { |
||
35 | return array_map(function (SerializationInterface $node) { |
||
36 | return $node->toArray(); |
||
37 | }, $this->operationTypes); |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | public function toArray(): array |
||
50 | ]; |
||
51 | } |
||
53 |