You are here

public function PriorityList::isLIFO in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/PriorityList.php \Zend\Stdlib\PriorityList::isLIFO()

Get/Set serial order mode

Parameters

bool|null $flag:

Return value

bool

File

vendor/zendframework/zend-stdlib/src/PriorityList.php, line 175

Class

PriorityList

Namespace

Zend\Stdlib

Code

public function isLIFO($flag = null) {
  if ($flag !== null) {
    $isLifo = $flag === true ? 1 : -1;
    if ($isLifo !== $this->isLIFO) {
      $this->isLIFO = $isLifo;
      $this->sorted = false;
    }
  }
  return 1 === $this->isLIFO;
}