From 346bdfa78649ad2e4ad91ab18253f981fafa3f37 Mon Sep 17 00:00:00 2001 From: TheCelavi Date: Fri, 20 Sep 2019 12:48:26 +0200 Subject: [PATCH] Stack of AbstractStackedSaxHandler is accessible in inheriting class. --- .../Sax/Handler/AbstractStackedSaxHandler.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/RunOpenCode/Sax/Handler/AbstractStackedSaxHandler.php b/src/RunOpenCode/Sax/Handler/AbstractStackedSaxHandler.php index 4e5a660..2288839 100644 --- a/src/RunOpenCode/Sax/Handler/AbstractStackedSaxHandler.php +++ b/src/RunOpenCode/Sax/Handler/AbstractStackedSaxHandler.php @@ -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 *