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