public function PriorityList::setPriority in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-stdlib/src/PriorityList.php \Zend\Stdlib\PriorityList::setPriority()
Parameters
string $name:
int $priority:
Return value
$this
Throws
\Exception
File
- vendor/
zendframework/ zend-stdlib/ src/ PriorityList.php, line 86
Class
Namespace
Zend\StdlibCode
public function setPriority($name, $priority) {
if (!isset($this->items[$name])) {
throw new \Exception("item {$name} not found");
}
$this->items[$name]['priority'] = (int) $priority;
$this->sorted = false;
return $this;
}