src/DateRepetition/WeeklyDateRepetition.php
public function setDay($day)
    {
        if(! in_array($day, $this->weekDays)) {
            throw new InvalidArgumentException('Argument is not a day of the week');
        }
        $this->day = $day;
        return $this;
    }
public function setDay($day)
    {
        if(! in_array($day, $this->weekDays)) {
            throw new InvalidArgumentException('Argument is not a day of the week');
        }
        $this->day = $day;
        return $this;
    }
public function setDay ( $ day ) { if ( ! in_array ( $ day , $ this -> weekDays ) ) { throw new InvalidArgumentException ( 'Argument is not a day of the week' ) ; } $ this -> day = $ day ; return $ this ; }
Sets weekday of the weekly date repetition

@param string day of the week (monday, tuesday, wednesday, thursday, friday, saturday, sunday)
@return this
Sets weekday of the weekly date repetition