function DoubleEndedQueueInterface::lastElement
Retrieves, but does not remove, the tail of this queue.
This method differs from `peekLast()` only in that it throws an exception if this queue is empty.
Return value
T the tail of this queue.
Throws
NoSuchElementException if this queue is empty.
1 method overrides DoubleEndedQueueInterface::lastElement()
- DoubleEndedQueue::lastElement in vendor/
ramsey/ collection/ src/ DoubleEndedQueue.php
File
-
vendor/
ramsey/ collection/ src/ DoubleEndedQueueInterface.php, line 296
Class
- DoubleEndedQueueInterface
- A linear collection that supports element insertion and removal at both ends.
Namespace
Ramsey\CollectionCode
public function lastElement() : mixed;