/** * * Commit Element and clean current element * @return self */ private function commitElement() { if ($this->_currentelement) { $this->_elements[] = $this->_currentelement->getElement(false); $this->_currentelement = null; } }