Eris\Generator\ArithmeticProgression::next PHP Méthode

next() public méthode

public next ( $currentValue )
    public function next($currentValue)
    {
        if ($currentValue > $this->lowerLimit) {
            return $currentValue - 1;
        }
        return $this->lowerLimit;
    }
ArithmeticProgression