WooCommerce Code Reference

NameNode extends Node
in package
implements TypeNode

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

TypeNode
export type TypeNode = NamedTypeNode | ListTypeNode | NonNullTypeNode.

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

Methods

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>

cloneValue()

protected static cloneValue(mixed $value) : mixed
Parameters
$value : mixed
Tags
template

TNode of Node

template

TCloneable of TNode|NodeList|Location|string

phpstan-param

TCloneable $value

throws
JsonException
throws
InvariantViolation
phpstan-return

TCloneable

Return values
mixed