You are here

public function PriorityQueue::top in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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();
}