You are here

public function FastPriorityQueue::hasPriority in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/FastPriorityQueue.php \Zend\Stdlib\FastPriorityQueue::hasPriority()

Does the queue have an item with the given priority?

Parameters

int $priority:

Return value

bool

File

vendor/zendframework/zend-stdlib/src/FastPriorityQueue.php, line 339

Class

FastPriorityQueue
This is an efficient implementation of an integer priority queue in PHP

Namespace

Zend\Stdlib

Code

public function hasPriority($priority) {
  return isset($this->values[$priority]);
}