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

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

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

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

@param int $count
@param int $hours

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