1 | <?php |
||
18 | final class DirectiveObject extends ObjectDefinition |
||
19 | { |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | public const TYPE_NAME = '__Directive'; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | public const TYPE_DESCRIPTION = 'A Directive provides a way to describe alternate runtime execution |
||
29 | and type validation behavior in a GraphQL document. |
||
30 | |||
31 | In some cases, you need to provide options to alter GraphQL\'s |
||
32 | execution behavior in ways field arguments will not suffice, such |
||
33 | as conditionally including or skipping a field. Directives provide |
||
34 | this by describing additional information to the executor.'; |
||
35 | |||
36 | /** |
||
37 | * @var int |
||
38 | */ |
||
39 | public const TYPE_LINE = 133; |
||
40 | |||
41 | /** |
||
42 | * SchemaObject constructor. |
||
43 | * @param Document $document |
||
44 | */ |
||
45 | 9 | public function __construct(Document $document) |
|
52 | |||
53 | /** |
||
54 | * @return bool |
||
55 | */ |
||
56 | public function isBuiltin(): bool |
||
60 | } |
||
61 |