public function SplPriorityQueue::insert in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-stdlib/src/SplPriorityQueue.php \Zend\Stdlib\SplPriorityQueue::insert()
Insert a value with a given priority
Utilizes {emitted in the same order in which they are inserted.
Parameters
mixed $datum:
mixed $priority:
Return value
void
Overrides SplPriorityQueue::insert
1 call to SplPriorityQueue::insert()
- SplPriorityQueue::unserialize in vendor/
zendframework/ zend-stdlib/ src/ SplPriorityQueue.php - Deserialize
1 method overrides SplPriorityQueue::insert()
- SplPriorityQueue::insert in vendor/
zendframework/ zend-stdlib/ src/ SplPriorityQueue.php - Insert a value with a given priority
File
- vendor/
zendframework/ zend-stdlib/ src/ SplPriorityQueue.php, line 37
Class
- SplPriorityQueue
- Serializable version of SplPriorityQueue
Namespace
Zend\StdlibCode
public function insert($datum, $priority) {
if (!is_array($priority)) {
$priority = [
$priority,
$this->serial--,
];
}
parent::insert($datum, $priority);
}