AddNewProperty
class AddNewProperty extends AbstractTransformation (View source)
Add the new property and its value
Properties
protected string | $newPropertyName | ||
protected string | $value |
Methods
bool
isTransformable(NodeData $node)
If the given node has no property this transformation should work on, this returns true.
void
setNewPropertyName(string $newPropertyName)
Sets the name of the new property to be added.
void
setValue(string $value)
Property value to be set.
Details
bool
isTransformable(NodeData $node)
If the given node has no property this transformation should work on, this returns true.
void
setNewPropertyName(string $newPropertyName)
Sets the name of the new property to be added.
void
setValue(string $value)
Property value to be set.