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