src/BitMaskGenerator.php
protected function generateNextMask() {
    if (is_null($this->mask)) {
      $this->generateFirstMask();
      return TRUE;
    }
    if (!$this->generateNextPermutation()) {
      return $this->addPositive();
    }
    return TRUE;
  }
protected function generateNextMask() {
    if (is_null($this->mask)) {
      $this->generateFirstMask();
      return TRUE;
    }
    if (!$this->generateNextPermutation()) {
      return $this->addPositive();
    }
    return TRUE;
  }
protected function generateNextMask ( ) { if ( is_null ( $ this -> mask ) ) { $ this -> generateFirstMask ( ) ; return TRUE ; } if ( ! $ this -> generateNextPermutation ( ) ) { return $ this -> addPositive ( ) ; } return TRUE ; }
Generates the next mask.

@return boolean
TRUE on success, FALSE on failure (= there is no next mask left to be
generated).
Generates the next mask .