Directive
in package
Tags
Table of Contents
- DEFAULT_DEPRECATION_REASON = 'No longer supported'
- DEPRECATED_NAME = 'deprecated'
- IF_ARGUMENT_NAME = 'if'
- INCLUDE_NAME = 'include'
- ONE_OF_NAME = 'oneOf'
- REASON_ARGUMENT_NAME = 'reason'
- SKIP_NAME = 'skip'
- $args : array<string|int, mixed>
- $astNode : DirectiveDefinitionNode|null
- $config : array<string|int, mixed>
- $description : string|null
- $isRepeatable : bool
- $locations : array<string|int, mixed>
- $name : string
- $internalDirectives : array<string|int, mixed>|null
- Lazily initialized.
- __construct() : mixed
- builtInDirectives() : array<string, Directive>
- deprecatedDirective() : Directive
- getInternalDirectives() : array<string, Directive>
- includeDirective() : Directive
- isBuiltInDirective() : bool
- isSpecifiedDirective() : bool
- oneOfDirective() : Directive
- resetCachedInstances() : void
- skipDirective() : Directive
Constants
DEFAULT_DEPRECATION_REASON
public
mixed
DEFAULT_DEPRECATION_REASON
= 'No longer supported'
DEPRECATED_NAME
public
mixed
DEPRECATED_NAME
= 'deprecated'
IF_ARGUMENT_NAME
public
mixed
IF_ARGUMENT_NAME
= 'if'
INCLUDE_NAME
public
mixed
INCLUDE_NAME
= 'include'
ONE_OF_NAME
public
mixed
ONE_OF_NAME
= 'oneOf'
REASON_ARGUMENT_NAME
public
mixed
REASON_ARGUMENT_NAME
= 'reason'
SKIP_NAME
public
mixed
SKIP_NAME
= 'skip'
Properties
$args
public
array<string|int, mixed>
$args
$astNode
public
DirectiveDefinitionNode|null
$astNode
$config
public
array<string|int, mixed>
$config
Tags
$description
public
string|null
$description
$isRepeatable
public
bool
$isRepeatable
$locations
public
array<string|int, mixed>
$locations
$name
public
string
$name
$internalDirectives
Lazily initialized.
protected
static array<string|int, mixed>|null
$internalDirectives
= null
Methods
__construct()
public
__construct(array<string, mixed> $config) : mixed
Parameters
- $config : array<string, mixed>
Tags
Return values
mixed —builtInDirectives()
public
static builtInDirectives() : array<string, Directive>
Return values
array<string, Directive> —deprecatedDirective()
public
static deprecatedDirective() : Directive
Return values
Directive —getInternalDirectives()
public
static getInternalDirectives() : array<string, Directive>
Tags
Return values
array<string, Directive> —includeDirective()
public
static includeDirective() : Directive
Return values
Directive —isBuiltInDirective()
public
static isBuiltInDirective(self $directive) : bool
Parameters
- $directive : self
Return values
bool —isSpecifiedDirective()
public
static isSpecifiedDirective(Directive $directive) : bool
Parameters
- $directive : Directive
Tags
Return values
bool —oneOfDirective()
public
static oneOfDirective() : Directive
Return values
Directive —resetCachedInstances()
public
static resetCachedInstances() : void
Return values
void —skipDirective()
public
static skipDirective() : Directive
