stack[] = $item; } } else { $this->stack[] = $var; } } /** * @return mixed */ public function pop() { return array_pop($this->stack); } }