class PropertyNotEmpty implements FilterInterface (View source)

Filter nodes having the given property and its value not empty.

Properties

protected string $propertyName

The name of the property to be checked for non-empty value.

Methods

void
setPropertyName(string $propertyName)

Sets the property name to be checked for non-empty value.

bool
matches(NodeData $node)

Returns true if the given node has the property and the value is not empty.

Details

void setPropertyName(string $propertyName)

Sets the property name to be checked for non-empty value.

Parameters

string $propertyName

Return Value

void

bool matches(NodeData $node)

Returns true if the given node has the property and the value is not empty.

Parameters

NodeData $node

Return Value

bool