Eris\Generator\ArithmeticProgression::next PHP Method

next() public method

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