/** * @param NodeInterface $node The parent node under which a new child shall be created * @param NodeType $creationNodeType The node type of the new child node, to check if this is type is allowed as new child node under the given parent node * @param JoinPointInterface $joinPoint Set, if created by a method interception. Usually the interception of the createNode() method, where the creation of new child nodes takes place */ public function __construct(NodeInterface $node, NodeType $creationNodeType = null, JoinPointInterface $joinPoint = null) { $this->creationNodeType = $creationNodeType; parent::__construct($node, $joinPoint); }
/** * @param NodeInterface $node * @param JoinPointInterface $joinPoint * @param string $propertyName */ public function __construct(NodeInterface $node, JoinPointInterface $joinPoint = null, $propertyName = null) { $this->propertyName = $propertyName; parent::__construct($node, $joinPoint); }