Documentation

FieldArgument
in package

Table of Contents

$astNode  : InputValueDefinitionNode|null
$config  : array<string|int, mixed>
$defaultValue  : mixed
$description  : string|null
$name  : string
$type  : Type|InputType
__construct()  : mixed
assertValid()  : mixed
createMap()  : array<string|int, FieldArgument>
defaultValueExists()  : bool
getType()  : Type
isRequired()  : bool

Properties

Methods

__construct()

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

assertValid()

public assertValid(FieldDefinition $parentField, Type $parentType) : mixed
Parameters
$parentField : FieldDefinition
$parentType : Type
Return values
mixed

createMap()

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

defaultValueExists()

public defaultValueExists() : bool
Return values
bool

isRequired()

public isRequired() : bool
Return values
bool

Search results