Skip to content

Latest commit

 

History

History
217 lines (85 loc) · 2.46 KB

File metadata and controls

217 lines (85 loc) · 2.46 KB

Node

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

  • Full name: \GraphQL\Language\AST\Node
  • This class is an Abstract class

Properties

loc

public \GraphQL\Language\AST\Location|null $loc

kind

public string $kind

Methods

__construct

public __construct((\GraphQL\Language\AST\NameNode|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\SelectionSetNode|\GraphQL\Language\AST\Location|string|int|bool|float|null)[] $vars): mixed

Parameters:

Parameter Type Description
$vars (\GraphQL\Language\AST\NameNode|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\SelectionSetNode|\GraphQL\Language\AST\Location|string|int|bool|float|null)[]

cloneDeep

public cloneDeep(): self

cloneValue

private cloneValue(string|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\Location|\GraphQL\Language\AST\Node|(\GraphQL\Language\AST\Node|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\Location)[] $value): string|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\Location|\GraphQL\Language\AST\Node

Parameters:

Parameter Type Description
$value string|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\Location|\GraphQL\Language\AST\Node|(\GraphQL\Language\AST\Node|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\Location)[]

__toString

public __toString(): string

toArray

public toArray(bool $recursive = false): array

Parameters:

Parameter Type Description
$recursive bool

recursiveToArray

private recursiveToArray(\GraphQL\Language\AST\Node $node): array

Parameters:

Parameter Type Description
$node \GraphQL\Language\AST\Node