Documentation

ListValueNode extends Node
in package
implements ValueNode

type Node = NameNode | DocumentNode | OperationDefinitionNode | VariableDefinitionNode | VariableNode | SelectionSetNode | FieldNode | ArgumentNode | FragmentSpreadNode | InlineFragmentNode | FragmentDefinitionNode | IntValueNode | FloatValueNode | StringValueNode | BooleanValueNode | EnumValueNode | ListValueNode | ObjectValueNode | ObjectFieldNode | DirectiveNode | ListTypeNode | NonNullTypeNode

Interfaces, Classes, Traits and Enums

ValueNode
export type ValueNode = VariableNode | NullValueNode | IntValueNode | FloatValueNode | StringValueNode | BooleanValueNode | EnumValueNode | ListValueNode | ObjectValueNode

Table of Contents

$kind  : string
$loc  : Location|null
$values  : NodeList<string|int, \GraphQL\Language\AST\ValueNode&\GraphQL\Language\AST\Node>
__construct()  : mixed
__toString()  : string
cloneDeep()  : self
toArray()  : array<string|int, mixed>
cloneValue()  : string|NodeList|Location|Node
recursiveToArray()  : array<string|int, mixed>

Properties

$kind

public string $kind = \GraphQL\Language\AST\NodeKind::LST

$values

public NodeList<string|int, \GraphQL\Language\AST\ValueNode&\GraphQL\Language\AST\Node> $values

Methods

__construct()

public __construct(array<string|int, \GraphQL\Language\AST\NameNode|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\SelectionSetNode|\GraphQL\Language\AST\Location|string|int|bool|float|null> $vars) : mixed
Parameters
$vars : array<string|int, \GraphQL\Language\AST\NameNode|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\SelectionSetNode|\GraphQL\Language\AST\Location|string|int|bool|float|null>
Return values
mixed

__toString()

public __toString() : string
Return values
string

cloneDeep()

public cloneDeep() : self
Return values
self

toArray()

public toArray([bool $recursive = false ]) : array<string|int, mixed>
Parameters
$recursive : bool = false
Return values
array<string|int, mixed>

recursiveToArray()

private recursiveToArray(Node $node) : array<string|int, mixed>
Parameters
$node : Node
Return values
array<string|int, mixed>

Search results