44 if ($mode & parent::IT_MODE_LIFO === parent::IT_MODE_LIFO) {
45 throw new RuntimeException(
"Iterators' LIFO/FIFO modes for SplStack/SplQueue objects are frozen");
48 $this->_it_mode = $mode;
57 return parent::shift();
67 return parent::push($data);
enqueue($data)
Pushes an element at the end of the queue.
setIteratorMode($mode)
Changes the iteration mode.
Exception thrown for errors that are only detectable at runtime.
Implementation of a Queue through a DoublyLinkedList.