Allow to get parent of BaseNode

This commit is contained in:
Strate 2013-06-18 00:44:11 +04:00 committed by Fabien Potencier
parent 0c8eb2a3f4
commit d95c245d65
1 changed files with 10 additions and 0 deletions

View File

@ -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.
*