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 24
static array find(Node $node, callable $filter)

No description

Parameters

Node $node
callable $filter

Return Value

array

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

No description

Parameters

Node $node
callable $filter

Return Value

Node|null

at line 51
static Node clone(Node $node)

No description

Parameters

Node $node

Return Value

Node

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

No description

Parameters

ExpressionNode $node
bool $constants

Return Value

mixed

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

No description

Parameters

Node|null $node

Return Value

string|null

Traits

Better OOP experience.