public function __construct($start, $count, SchedulerInterface $scheduler = null)
{
if (!is_int($start) || !is_int($count)) {
throw new \InvalidArgumentException("'start' and 'count' must be an integer");
}
$this->start = $start;
$this->count = $count;
$this->scheduler = $scheduler;
}