@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | namespace Digia\GraphQL\Language\Node; |
4 | 4 | |
5 | 5 | class ScalarTypeExtensionNode extends AbstractNode implements TypeExtensionNodeInterface, DirectivesAwareInterface, |
6 | - NameAwareInterface |
|
6 | + NameAwareInterface |
|
7 | 7 | { |
8 | 8 | |
9 | 9 | use NameTrait; |
@@ -20,10 +20,10 @@ discard block |
||
20 | 20 | public function toArray(): array |
21 | 21 | { |
22 | 22 | return [ |
23 | - 'kind' => $this->kind, |
|
24 | - 'name' => $this->getNameAsArray(), |
|
25 | - 'directives' => $this->getDirectivesAsArray(), |
|
26 | - 'loc' => $this->getLocationAsArray(), |
|
23 | + 'kind' => $this->kind, |
|
24 | + 'name' => $this->getNameAsArray(), |
|
25 | + 'directives' => $this->getDirectivesAsArray(), |
|
26 | + 'loc' => $this->getLocationAsArray(), |
|
27 | 27 | ]; |
28 | 28 | } |
29 | 29 | } |
@@ -31,10 +31,10 @@ |
||
31 | 31 | public function toArray(): array |
32 | 32 | { |
33 | 33 | return [ |
34 | - 'kind' => $this->kind, |
|
35 | - 'operation' => $this->operation, |
|
36 | - 'type' => $this->getTypeAsArray(), |
|
37 | - 'loc' => $this->getLocationAsArray(), |
|
34 | + 'kind' => $this->kind, |
|
35 | + 'operation' => $this->operation, |
|
36 | + 'type' => $this->getTypeAsArray(), |
|
37 | + 'loc' => $this->getLocationAsArray(), |
|
38 | 38 | ]; |
39 | 39 | } |
40 | 40 | } |
@@ -23,12 +23,12 @@ |
||
23 | 23 | public function toArray(): array |
24 | 24 | { |
25 | 25 | return [ |
26 | - 'kind' => $this->kind, |
|
27 | - 'description' => $this->getDescriptionAsArray(), |
|
28 | - 'name' => $this->getNameAsArray(), |
|
29 | - 'directives' => $this->getDirectivesAsArray(), |
|
30 | - 'types' => $this->getTypesAsArray(), |
|
31 | - 'loc' => $this->getLocationAsArray(), |
|
26 | + 'kind' => $this->kind, |
|
27 | + 'description' => $this->getDescriptionAsArray(), |
|
28 | + 'name' => $this->getNameAsArray(), |
|
29 | + 'directives' => $this->getDirectivesAsArray(), |
|
30 | + 'types' => $this->getTypesAsArray(), |
|
31 | + 'loc' => $this->getLocationAsArray(), |
|
32 | 32 | ]; |
33 | 33 | } |
34 | 34 | } |
@@ -21,12 +21,12 @@ |
||
21 | 21 | public function toArray(): array |
22 | 22 | { |
23 | 23 | return [ |
24 | - 'kind' => $this->kind, |
|
25 | - 'description' => $this->getDescriptionAsArray(), |
|
26 | - 'name' => $this->getNameAsArray(), |
|
27 | - 'directives' => $this->getDirectivesAsArray(), |
|
28 | - 'fields' => $this->getFieldsAsArray(), |
|
29 | - 'loc' => $this->getLocationAsArray(), |
|
24 | + 'kind' => $this->kind, |
|
25 | + 'description' => $this->getDescriptionAsArray(), |
|
26 | + 'name' => $this->getNameAsArray(), |
|
27 | + 'directives' => $this->getDirectivesAsArray(), |
|
28 | + 'fields' => $this->getFieldsAsArray(), |
|
29 | + 'loc' => $this->getLocationAsArray(), |
|
30 | 30 | ]; |
31 | 31 | } |
32 | 32 | } |
@@ -22,13 +22,13 @@ |
||
22 | 22 | public function toArray(): array |
23 | 23 | { |
24 | 24 | return [ |
25 | - 'kind' => $this->kind, |
|
26 | - 'description' => $this->getDescriptionAsArray(), |
|
27 | - 'name' => $this->getNameAsArray(), |
|
28 | - 'interfaces' => $this->getInterfacesAsArray(), |
|
29 | - 'directives' => $this->getDirectivesAsArray(), |
|
30 | - 'fields' => $this->getFieldsAsArray(), |
|
31 | - 'loc' => $this->getLocationAsArray(), |
|
25 | + 'kind' => $this->kind, |
|
26 | + 'description' => $this->getDescriptionAsArray(), |
|
27 | + 'name' => $this->getNameAsArray(), |
|
28 | + 'interfaces' => $this->getInterfacesAsArray(), |
|
29 | + 'directives' => $this->getDirectivesAsArray(), |
|
30 | + 'fields' => $this->getFieldsAsArray(), |
|
31 | + 'loc' => $this->getLocationAsArray(), |
|
32 | 32 | ]; |
33 | 33 | } |
34 | 34 | } |
@@ -21,12 +21,12 @@ |
||
21 | 21 | public function toArray(): array |
22 | 22 | { |
23 | 23 | return [ |
24 | - 'kind' => $this->kind, |
|
25 | - 'name' => $this->getNameAsArray(), |
|
26 | - 'interfaces' => $this->getInterfacesAsArray(), |
|
27 | - 'directives' => $this->getDirectivesAsArray(), |
|
28 | - 'fields' => $this->getFieldsAsArray(), |
|
29 | - 'loc' => $this->getLocationAsArray(), |
|
24 | + 'kind' => $this->kind, |
|
25 | + 'name' => $this->getNameAsArray(), |
|
26 | + 'interfaces' => $this->getInterfacesAsArray(), |
|
27 | + 'directives' => $this->getDirectivesAsArray(), |
|
28 | + 'fields' => $this->getFieldsAsArray(), |
|
29 | + 'loc' => $this->getLocationAsArray(), |
|
30 | 30 | ]; |
31 | 31 | } |
32 | 32 | } |
@@ -18,9 +18,9 @@ |
||
18 | 18 | public function toArray(): array |
19 | 19 | { |
20 | 20 | return [ |
21 | - 'kind' => $this->kind, |
|
22 | - 'name' => $this->getNameAsArray(), |
|
23 | - 'loc' => $this->getLocationAsArray(), |
|
21 | + 'kind' => $this->kind, |
|
22 | + 'name' => $this->getNameAsArray(), |
|
23 | + 'loc' => $this->getLocationAsArray(), |
|
24 | 24 | ]; |
25 | 25 | } |
26 | 26 | } |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | namespace Digia\GraphQL\Language\Node; |
4 | 4 | |
5 | 5 | class ScalarTypeDefinitionNode extends AbstractNode implements TypeDefinitionNodeInterface, DirectivesAwareInterface, |
6 | - NameAwareInterface |
|
6 | + NameAwareInterface |
|
7 | 7 | { |
8 | 8 | |
9 | 9 | use DescriptionTrait; |
@@ -21,11 +21,11 @@ discard block |
||
21 | 21 | public function toArray(): array |
22 | 22 | { |
23 | 23 | return [ |
24 | - 'kind' => $this->kind, |
|
25 | - 'description' => $this->getDescriptionAsArray(), |
|
26 | - 'name' => $this->getNameAsArray(), |
|
27 | - 'directives' => $this->getDirectivesAsArray(), |
|
28 | - 'loc' => $this->getLocationAsArray(), |
|
24 | + 'kind' => $this->kind, |
|
25 | + 'description' => $this->getDescriptionAsArray(), |
|
26 | + 'name' => $this->getNameAsArray(), |
|
27 | + 'directives' => $this->getDirectivesAsArray(), |
|
28 | + 'loc' => $this->getLocationAsArray(), |
|
29 | 29 | ]; |
30 | 30 | } |
31 | 31 | } |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | namespace Digia\GraphQL\Language\Node; |
4 | 4 | |
5 | 5 | class FieldNode extends AbstractNode implements SelectionNodeInterface, ArgumentsAwareInterface, |
6 | - DirectivesAwareInterface, NameAwareInterface |
|
6 | + DirectivesAwareInterface, NameAwareInterface |
|
7 | 7 | { |
8 | 8 | |
9 | 9 | use AliasTrait; |
@@ -23,13 +23,13 @@ discard block |
||
23 | 23 | public function toArray(): array |
24 | 24 | { |
25 | 25 | return [ |
26 | - 'kind' => $this->kind, |
|
27 | - 'loc' => $this->getLocationAsArray(), |
|
28 | - 'alias' => $this->getAliasAsArray(), |
|
29 | - 'name' => $this->getNameAsArray(), |
|
30 | - 'arguments' => $this->getArgumentsAsArray(), |
|
31 | - 'directives' => $this->getDirectivesAsArray(), |
|
32 | - 'selectionSet' => $this->getSelectionSetAsArray(), |
|
26 | + 'kind' => $this->kind, |
|
27 | + 'loc' => $this->getLocationAsArray(), |
|
28 | + 'alias' => $this->getAliasAsArray(), |
|
29 | + 'name' => $this->getNameAsArray(), |
|
30 | + 'arguments' => $this->getArgumentsAsArray(), |
|
31 | + 'directives' => $this->getDirectivesAsArray(), |
|
32 | + 'selectionSet' => $this->getSelectionSetAsArray(), |
|
33 | 33 | ]; |
34 | 34 | } |
35 | 35 | } |