82 public function pop() {
83 if ( $this->stack === [] ) {
84 throw new MWException( __METHOD__ .
': no elements remaining' );
86 $temp = array_pop( $this->stack );
88 if (
count( $this->stack ) ) {
89 $this->top = $this->stack[
count( $this->stack ) - 1];
90 $this->accum =& $this->top->getAccum();