final class NodeHelpers

Methods

static array
find(Node $node, callable $filter)

No description

static Node|null
findFirst(Node $node, callable $filter)

No description

static Node
clone(Node $node)

No description

static mixed
toValue(ExpressionNode $node, bool $constants = false)

No description

static string|null
toText(Node|null $node)

No description

Details

at line 21
static array find(Node $node, callable $filter)

No description

Parameters

Node $node
callable $filter

Return Value

array

at line 34
static Node|null findFirst(Node $node, callable $filter)

No description

Parameters

Node $node
callable $filter

Return Value

Node|null

at line 48
static Node clone(Node $node)

No description

Parameters

Node $node

Return Value

Node

at line 55
static mixed toValue(ExpressionNode $node, bool $constants = false)

No description

Parameters

ExpressionNode $node
bool $constants

Return Value

mixed

at line 108
static string|null toText(Node|null $node)

No description

Parameters

Node|null $node

Return Value

string|null