public static function repeatMinutelyForTotalCount($count, $minutes = 1)
    {
        if($count < 1) {
            throw new \InvalidArgumentException(sprintf('Total count of firings must be at least one! Given count: "%s"', $count));
        }

        return static::simpleSchedule()
            ->withIntervalInMinutes($minutes)
            ->withRepeatCount($count - 1);
    }
public static function repeatMinutelyForTotalCount($count, $minutes = 1)
    {
        if($count < 1) {
            throw new \InvalidArgumentException(sprintf('Total count of firings must be at least one! Given count: "%s"', $count));
        }

        return static::simpleSchedule()
            ->withIntervalInMinutes($minutes)
            ->withRepeatCount($count - 1);
    }
public static function repeatMinutelyForTotalCount ( $ count , $ minutes = 1 ) { if ( $ count < 1 ) { throw new \ InvalidArgumentException ( sprintf ( 'Total count of firings must be at least one! Given count: "%s"' , $ count ) ) ; } return static :: simpleSchedule ( ) -> withIntervalInMinutes ( $ minutes ) -> withRepeatCount ( $ count - 1 ) ; }
Create a SimpleScheduleBuilder set to repeat the given number
of times - 1  with an interval of the given number of minutes.

<p>Note: Total count = 1 (at start time) + repeat count</p>

@param int $count
@param int $minutes

@return SimpleScheduleBuilder
Create a SimpleScheduleBuilder set to repeat the given number of times - 1 with an interval of the given number of minutes .