You are here

public function FastPriorityQueue::setExtractFlags in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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\Stdlib

Code

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");
  }
}