You are here

public function PriorityQueue::top in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-stdlib/src/PriorityQueue.php \Zend\Stdlib\PriorityQueue::top()

Peek at the top node in the queue, based on priority.

Return value

mixed

File

vendor/zendframework/zend-stdlib/src/PriorityQueue.php, line 138

Class

PriorityQueue
Re-usable, serializable priority queue implementation

Namespace

Zend\Stdlib

Code

public function top() {
  return $this
    ->getIterator()
    ->top();
}