function Queue::remove
Return value
T
Throws
NoSuchElementException if this queue is empty.
Overrides QueueInterface::remove
1 call to Queue::remove()
- DoubleEndedQueue::removeFirst in vendor/
ramsey/ collection/ src/ DoubleEndedQueue.php
File
-
vendor/
ramsey/ collection/ src/ Queue.php, line 137
Class
- Queue
- This class provides a basic implementation of `QueueInterface`, to minimize the effort required to implement this interface.
Namespace
Ramsey\CollectionCode
public function remove() : mixed {
return $this->poll() ?? throw new NoSuchElementException('Can\'t return element from Queue. Queue is empty.');
}