Documentation

Directive
in package

Table of Contents

DEFAULT_DEPRECATION_REASON  = 'No longer supported'
DEPRECATED_NAME  = 'deprecated'
IF_ARGUMENT_NAME  = 'if'
INCLUDE_NAME  = 'include'
REASON_ARGUMENT_NAME  = 'reason'
SKIP_NAME  = 'skip'
$args  : array<string|int, FieldArgument>
$astNode  : DirectiveDefinitionNode|null
$config  : array<string|int, mixed>
$description  : string|null
$internalDirectives  : array<string|int, Directive>|null
$isRepeatable  : bool
$locations  : array<string|int, string>
$name  : string
__construct()  : mixed
deprecatedDirective()  : Directive
getInternalDirectives()  : array<string|int, Directive>
includeDirective()  : Directive
isSpecifiedDirective()  : bool
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'

REASON_ARGUMENT_NAME

public mixed REASON_ARGUMENT_NAME = 'reason'

Properties

$config

public array<string|int, mixed> $config

$description

public string|null $description

$locations

public array<string|int, string> $locations

Methods

__construct()

public __construct(array<string|int, mixed> $config) : mixed
Parameters
$config : array<string|int, mixed>
Return values
mixed

getInternalDirectives()

public static getInternalDirectives() : array<string|int, Directive>
Return values
array<string|int, Directive>

isSpecifiedDirective()

public static isSpecifiedDirective(Directive $directive) : bool
Parameters
$directive : Directive
Return values
bool

Search results