public function setDayOfWeek($dayOfWeek)
    {
        if (!preg_match(self::$_regex['dayOfWeek'], $dayOfWeek)) {
            throw new \InvalidArgumentException(sprintf('DayOfWeek "%s" is incorect', $dayOfWeek));
        }

        $this->dayOfWeek = $dayOfWeek;

        return $this->generateHash();
    }
public function setDayOfWeek($dayOfWeek)
    {
        if (!preg_match(self::$_regex['dayOfWeek'], $dayOfWeek)) {
            throw new \InvalidArgumentException(sprintf('DayOfWeek "%s" is incorect', $dayOfWeek));
        }

        $this->dayOfWeek = $dayOfWeek;

        return $this->generateHash();
    }
public function setDayOfWeek ( $ dayOfWeek ) { if ( ! preg_match ( self :: $ _regex [ 'dayOfWeek' ] , $ dayOfWeek ) ) { throw new \ InvalidArgumentException ( sprintf ( 'DayOfWeek "%s" is incorect' , $ dayOfWeek ) ) ; } $ this -> dayOfWeek = $ dayOfWeek ; return $ this -> generateHash ( ) ; }
Set the day of week

@param string

@return Job
Set the day of week