1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Digia\GraphQL\Language\ASTBuilder; |
4
|
|
|
|
5
|
|
|
class ASTKindEnum |
6
|
|
|
{ |
7
|
|
|
public const ARGUMENTS = 'arguments'; |
8
|
|
|
public const DIRECTIVES = 'directives'; |
9
|
|
|
public const DOCUMENT = 'document'; |
10
|
|
|
public const FIELD = 'field'; |
11
|
|
|
public const FRAGMENT = 'fragment'; |
12
|
|
|
public const NAME = 'name'; |
13
|
|
|
public const NAMED_TYPE = 'namedType'; |
14
|
|
|
public const SELECTION_SET = 'selectionSet'; |
15
|
|
|
public const TYPE_REFERENCE = 'typeReference'; |
16
|
|
|
public const VALUE = 'value'; |
17
|
|
|
public const VARIABLE = 'variable'; |
18
|
|
|
|
19
|
|
|
public const DIRECTIVE_DEFINITION = 'directiveDefinition'; |
20
|
|
|
public const ENUM_TYPE_DEFINITION = 'enumTypeDefinition'; |
21
|
|
|
public const FRAGMENT_DEFINITION = 'fragmentDefinition'; |
22
|
|
|
public const INPUT_OBJECT_TYPE_DEFINITION = 'inputObjectTypeDefinition'; |
23
|
|
|
public const INTERFACE_TYPE_DEFINITION = 'interfaceTypeDefinition'; |
24
|
|
|
public const OBJECT_TYPE_DEFINITION = 'objectTypeDefinition'; |
25
|
|
|
public const OPERATION_DEFINITION = 'operationDefinition'; |
26
|
|
|
public const SCALAR_TYPE_DEFINITION = 'scalarTypeDefinition'; |
27
|
|
|
public const SCHEMA_DEFINITION = 'schemaDefinition'; |
28
|
|
|
public const UNION_TYPE_DEFINITION = 'unionTypeDefinition'; |
29
|
|
|
public const VARIABLE_DEFINITION = 'variableDefinition'; |
30
|
|
|
|
31
|
|
|
public const ENUM_TYPE_EXTENSION = 'enumTypeExtension'; |
32
|
|
|
public const EXECUTABLE_DEFINITION = 'executableDefinition'; |
33
|
|
|
public const INTERFACE_TYPE_EXTENSION = 'interfaceTypeExtension'; |
34
|
|
|
public const OBJECT_TYPE_EXTENSION = 'objectTypeExtension'; |
35
|
|
|
public const SCALAR_TYPE_EXTENSION = 'scalarTypeExtension'; |
36
|
|
|
public const TYPE_SYSTEM_DEFINITION = 'typeSystemDefinition'; |
37
|
|
|
public const TYPE_SYSTEM_EXTENSION = 'typeSystemExtension'; |
38
|
|
|
public const UNION_TYPE_EXTENSION = 'unionTypeExtension'; |
39
|
|
|
|
40
|
|
|
public const STRING_LITERAL = 'stringLiteral'; |
41
|
|
|
public const DESCRIPTION = 'description'; |
42
|
|
|
public const ARGUMENTS_DEFINITION = 'argumentsDefinition'; |
43
|
|
|
public const INPUT_FIELDS_DEFINITION = 'inputFieldsDefinition'; |
44
|
|
|
public const IMPLEMENTS_INTERFACES = 'implementsInterfaces'; |
45
|
|
|
public const FIELDS_DEFINITION = 'fieldsDefinition'; |
46
|
|
|
public const INPUT_VALUE_DEFINITION = 'inputValueDefinition'; |
47
|
|
|
public const UNION_MEMBER_TYPES = 'unionMemberTypes'; |
48
|
|
|
public const ENUM_VALUES_DEFINITION = 'enumValuesDefinition'; |
49
|
|
|
public const INPUT_OBJECT_TYPE_EXTENSION = 'inputObjectTypeExtension'; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @return array |
53
|
|
|
* @throws \ReflectionException |
54
|
|
|
*/ |
55
|
|
|
public static function values(): array |
56
|
|
|
{ |
57
|
|
|
return array_values((new \ReflectionClass(__CLASS__))->getConstants()); |
58
|
|
|
} |
59
|
|
|
} |
60
|
|
|
|