79 public function pop() {
80 if ( $this->stack === [] ) {
81 throw new RuntimeException( __METHOD__ .
': no elements remaining' );
83 $temp = array_pop( $this->stack );
85 if (
count( $this->stack ) ) {
86 $this->top = $this->stack[
count( $this->stack ) - 1];
87 $this->accum =& $this->top->getAccum();