class RemoveProperty extends AbstractTransformation (View source)

Remove the property

Properties

protected string $propertyName

Methods

bool
isTransformable(NodeData $node)

If the given node has property this transformation should work on, this returns true.

execute(NodeData $node)

Remove the property from the given node.

void
setProperty(string $propertyName)

Sets the name of the property to be removed.

Details

bool isTransformable(NodeData $node)

If the given node has property this transformation should work on, this returns true.

Parameters

NodeData $node

Return Value

bool

NodeData execute(NodeData $node)

Remove the property from the given node.

Parameters

NodeData $node

Return Value

NodeData

Exceptions

NodeException

void setProperty(string $propertyName)

Sets the name of the property to be removed.

Parameters

string $propertyName

Return Value

void