FloatValueNode
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 and Traits
- ValueNode
- export type ValueNode = VariableNode | NullValueNode | IntValueNode | FloatValueNode | StringValueNode | BooleanValueNode | EnumValueNode | ListValueNode | ObjectValueNode.
Table of Contents
- $kind : string
- $loc : Location|null
- $value : string
- __construct() : mixed
- __toString() : string
- cloneDeep() : static
- Returns a clone of this instance and all its children, except Location $loc.
- jsonSerialize() : array<string, mixed>
- Improves upon the default serialization by: - excluding null values - excluding large reference values such as @see Location::$source.
- toArray() : array<string, mixed>
- cloneValue() : mixed
- recursiveToArray() : array<string, mixed>
Properties
$kind
public
string
$kind
= AutomatticWooCommerceVendorGraphQLLanguageASTNodeKind::FLOAT
$loc
public
Location|null
$loc
= null
$value
public
string
$value
Methods
__construct()
public
__construct(array<string, mixed> $vars) : mixed
Parameters
- $vars : array<string, mixed>
Return values
mixed —__toString()
public
__toString() : string
Tags
Return values
string —cloneDeep()
Returns a clone of this instance and all its children, except Location $loc.
public
cloneDeep() : static
Tags
Return values
static —jsonSerialize()
Improves upon the default serialization by: - excluding null values - excluding large reference values such as @see Location::$source.
public
jsonSerialize() : array<string, mixed>
Return values
array<string, mixed> —toArray()
public
toArray() : array<string, mixed>
Return values
array<string, mixed> —cloneValue()
protected
static cloneValue(mixed $value) : mixed
Parameters
- $value : mixed
Tags
Return values
mixed —recursiveToArray()
private
static recursiveToArray(Node $node) : array<string, mixed>
Parameters
- $node : Node
