public function onDaysOfTheWeek(array $onDaysOfWeek)
    {
        if(false == $onDaysOfWeek) {
            throw new \InvalidArgumentException('Days of week must be an non-empty set.');
        }

        foreach ($onDaysOfWeek as $day) {
            DateBuilder::validateDayOfWeek($day);
        }

        $this->daysOfWeek = $onDaysOfWeek;

        return $this;
    }
public function onDaysOfTheWeek(array $onDaysOfWeek)
    {
        if(false == $onDaysOfWeek) {
            throw new \InvalidArgumentException('Days of week must be an non-empty set.');
        }

        foreach ($onDaysOfWeek as $day) {
            DateBuilder::validateDayOfWeek($day);
        }

        $this->daysOfWeek = $onDaysOfWeek;

        return $this;
    }
public function onDaysOfTheWeek ( array $ onDaysOfWeek ) { if ( false == $ onDaysOfWeek ) { throw new \ InvalidArgumentException ( 'Days of week must be an non-empty set.' ) ; } foreach ( $ onDaysOfWeek as $ day ) { DateBuilder :: validateDayOfWeek ( $ day ) ; } $ this -> daysOfWeek = $ onDaysOfWeek ; return $ this ; }
Set the trigger to fire on the given days of the week.

@param array $onDaysOfWeek a Set containing the integers representing the days of the week, per the values 1-7 as defined by
{@link DateBuilder::SUNDAY} - {@link DateBuilder::SATURDAY}.

@return DailyTimeIntervalScheduleBuilder
Set the trigger to fire on the given days of the week .