public function PriorityQueue::contains in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-stdlib/src/PriorityQueue.php \Zend\Stdlib\PriorityQueue::contains()
Does the queue contain the given datum?
Parameters
mixed $datum:
Return value
bool
File
- vendor/
zendframework/ zend-stdlib/ src/ PriorityQueue.php, line 244
Class
- PriorityQueue
- Re-usable, serializable priority queue implementation
Namespace
Zend\StdlibCode
public function contains($datum) {
foreach ($this->items as $item) {
if ($item['data'] === $datum) {
return true;
}
}
return false;
}