_it_mode = $mode; } /** @return the first element of the queue. * @note dequeue is an alias of push() * @see splDoublyLinkedList::push() */ public function dequeue() { return parent::shift(); } /** Pushes an element at the end of the queue. * @param $data variable to add to the queue. * @note enqueue is an alias of shift() * @see splDoublyLinkedList::shift() */ public function enqueue($data) { return parent::push($data); } } ?>