src/BitMaskGenerator.php
protected function generateNextPermutation() {
    $number = implode('', $this->mask);
    $result = LexographicalPermutation::getNextPermutation($number);
    if ($result !== FALSE) {
      $this->mask = str_split($result);
    }
    return $result !== FALSE;
  }
protected function generateNextPermutation() {
    $number = implode('', $this->mask);
    $result = LexographicalPermutation::getNextPermutation($number);
    if ($result !== FALSE) {
      $this->mask = str_split($result);
    }
    return $result !== FALSE;
  }
protected function generateNextPermutation ( ) { $ number = implode ( '' , $ this -> mask ) ; $ result = LexographicalPermutation :: getNextPermutation ( $ number ) ; if ( $ result !== FALSE ) { $ this -> mask = str_split ( $ result ) ; } return $ result !== FALSE ; }
Generates the next permutation of the current mask.

@return boolean
TRUE on success, FALSE on failure (= there is no next permutation of the
current mask).
Generates the next permutation of the current mask .