T the tail of this queue.
NoSuchElementException if this queue is empty.
Overrides DoubleEndedQueueInterface::lastElement
public function lastElement() : mixed { return $this->peekLast() ?? throw new NoSuchElementException('Can\'t return element from Queue. Queue is empty.'); }