data[] = $element; } public function poke() { return end($this->data); } public function pop() { return array_pop($this->data); } }