public function FastPriorityQueue::setExtractFlags in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-stdlib/src/FastPriorityQueue.php \Zend\Stdlib\FastPriorityQueue::setExtractFlags()
Set the extract flag
Parameters
integer $flag:
File
- vendor/
zendframework/ zend-stdlib/ src/ FastPriorityQueue.php, line 294
Class
- FastPriorityQueue
- This is an efficient implementation of an integer priority queue in PHP
Namespace
Zend\StdlibCode
public function setExtractFlags($flag) {
switch ($flag) {
case self::EXTR_DATA:
case self::EXTR_PRIORITY:
case self::EXTR_BOTH:
$this->extractFlag = $flag;
break;
default:
throw new Exception\InvalidArgumentException("The extract flag specified is not valid");
}
}