Skip to content

Commit

Permalink
Stack of AbstractStackedSaxHandler is accessible in inheriting class.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCelavi committed Sep 20, 2019
1 parent 02878c8 commit 346bdfa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/RunOpenCode/Sax/Handler/AbstractStackedSaxHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ protected function getCurrentElementName()
return (($count = count($this->stack)) > 0) ? $this->stack[$count-1] : null;
}

/**
* Get current stack trace.
*
* @return array
*/
protected function getStack()
{
return $this->stack;
}

/**
* Get current element stack size
*
Expand Down

0 comments on commit 346bdfa

Please sign in to comment.