Allow to get parent of BaseNode
This commit is contained in:
parent
0c8eb2a3f4
commit
d95c245d65
|
@ -280,6 +280,16 @@ abstract class BaseNode implements NodeInterface
|
|||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns parent node for this node.
|
||||
*
|
||||
* @return NodeInterface|null
|
||||
*/
|
||||
public function getParent()
|
||||
{
|
||||
return $this->parent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Finalizes a value, applying all finalization closures.
|
||||
*
|
||||
|
|
Reference in New Issue