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\DirectiveNode
- Parent class:
\GraphQL\Language\AST\Node
public string $kind
public \GraphQL\Language\AST\NameNode $name
public \GraphQL\Language\AST\NodeList<\GraphQL\Language\AST\ArgumentNode> $arguments
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)[] |
public cloneDeep(): self
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)[] |
public __toString(): string
public toArray(bool $recursive = false): array
Parameters:
Parameter | Type | Description |
---|---|---|
$recursive |
bool |
private recursiveToArray(\GraphQL\Language\AST\Node $node): array
Parameters:
Parameter | Type | Description |
---|---|---|
$node |
\GraphQL\Language\AST\Node |