class NodeName implements FilterInterface (View source)

Filter nodes by node name.

Properties

protected string $nodeName

The node name to match on.

Methods

void
setNodeName(string $nodeName)

Sets the node type name to match on.

bool
matches(NodeData $node)

Returns true if the given node is of the node type this filter expects.

Details

void setNodeName(string $nodeName)

Sets the node type name to match on.

Parameters

string $nodeName

Return Value

void

bool matches(NodeData $node)

Returns true if the given node is of the node type this filter expects.

Parameters

NodeData $node

Return Value

bool