@@ -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 | } |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | namespace Digia\GraphQL\Language\Node; |
4 | 4 | |
5 | 5 | class EnumTypeExtensionNode extends AbstractNode implements TypeExtensionNodeInterface, DirectivesAwareInterface, |
6 | - NameAwareInterface |
|
6 | + NameAwareInterface |
|
7 | 7 | { |
8 | 8 | |
9 | 9 | use NameTrait; |
@@ -21,11 +21,11 @@ discard block |
||
21 | 21 | public function toArray(): array |
22 | 22 | { |
23 | 23 | return [ |
24 | - 'kind' => $this->kind, |
|
25 | - 'name' => $this->getNameAsArray(), |
|
26 | - 'directives' => $this->getDirectivesAsArray(), |
|
27 | - 'values' => $this->getValuesAsArray(), |
|
28 | - 'loc' => $this->getLocationAsArray(), |
|
24 | + 'kind' => $this->kind, |
|
25 | + 'name' => $this->getNameAsArray(), |
|
26 | + 'directives' => $this->getDirectivesAsArray(), |
|
27 | + 'values' => $this->getValuesAsArray(), |
|
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 InputValueDefinitionNode extends AbstractNode implements DefinitionNodeInterface, DirectivesAwareInterface, |
6 | - NameAwareInterface |
|
6 | + NameAwareInterface |
|
7 | 7 | { |
8 | 8 | |
9 | 9 | use DescriptionTrait; |
@@ -23,13 +23,13 @@ discard block |
||
23 | 23 | public function toArray(): array |
24 | 24 | { |
25 | 25 | return [ |
26 | - 'kind' => $this->kind, |
|
27 | - 'description' => $this->getDescriptionAsArray(), |
|
28 | - 'name' => $this->getNameAsArray(), |
|
29 | - 'type' => $this->getTypeAsArray(), |
|
30 | - 'defaultValue' => $this->getDefaultValueAsArray(), |
|
31 | - 'directives' => $this->getDirectivesAsArray(), |
|
32 | - 'loc' => $this->getLocationAsArray(), |
|
26 | + 'kind' => $this->kind, |
|
27 | + 'description' => $this->getDescriptionAsArray(), |
|
28 | + 'name' => $this->getNameAsArray(), |
|
29 | + 'type' => $this->getTypeAsArray(), |
|
30 | + 'defaultValue' => $this->getDefaultValueAsArray(), |
|
31 | + 'directives' => $this->getDirectivesAsArray(), |
|
32 | + 'loc' => $this->getLocationAsArray(), |
|
33 | 33 | ]; |
34 | 34 | } |
35 | 35 | } |
@@ -18,9 +18,9 @@ |
||
18 | 18 | public function toArray(): array |
19 | 19 | { |
20 | 20 | return [ |
21 | - 'kind' => $this->kind, |
|
22 | - 'value' => $this->value, |
|
23 | - 'loc' => $this->getLocationAsArray(), |
|
21 | + 'kind' => $this->kind, |
|
22 | + 'value' => $this->value, |
|
23 | + 'loc' => $this->getLocationAsArray(), |
|
24 | 24 | ]; |
25 | 25 | } |
26 | 26 | } |
@@ -51,8 +51,8 @@ |
||
51 | 51 | // TODO: Remove this method when every node implement its own toArray-method. |
52 | 52 | |
53 | 53 | return [ |
54 | - 'kind' => $this->kind, |
|
55 | - 'loc' => $this->getLocationAsArray(), |
|
54 | + 'kind' => $this->kind, |
|
55 | + 'loc' => $this->getLocationAsArray(), |
|
56 | 56 | ]; |
57 | 57 | } |
58 | 58 |