Argument
in package
Tags
Table of Contents
- $astNode : InputValueDefinitionNode|null
- $config : array<string|int, mixed>
- $defaultValue : mixed
- $deprecationReason : string|null
- $description : string|null
- $name : string
- $type : Type
- __construct() : mixed
- assertValid() : void
- defaultValueExists() : bool
- getType() : Type|InputType
- isDeprecated() : bool
- isRequired() : bool
- listFromConfig() : array<int, self>
Properties
$astNode
public
InputValueDefinitionNode|null
$astNode
$config
public
array<string|int, mixed>
$config
Tags
$defaultValue
public
mixed
$defaultValue
$deprecationReason
public
string|null
$deprecationReason
$description
public
string|null
$description
$name
public
string
$name
$type
private
Type
$type
Methods
__construct()
public
__construct(array<string|int, mixed> $config) : mixed
Parameters
- $config : array<string|int, mixed>
Tags
Return values
mixed —assertValid()
public
assertValid(FieldDefinition $parentField, Type|NamedType $parentType) : void
Parameters
- $parentField : FieldDefinition
- $parentType : Type|NamedType
Tags
Return values
void —defaultValueExists()
public
defaultValueExists() : bool
Return values
bool —getType()
public
getType() : Type|InputType
Return values
Type|InputType —isDeprecated()
public
isDeprecated() : bool
Return values
bool —isRequired()
public
isRequired() : bool
Return values
bool —listFromConfig()
public
static listFromConfig(iteratable<string|int, mixed> $config) : array<int, self>
Parameters
- $config : iteratable<string|int, mixed>
