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

        $this->hour = $hour;

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

        $this->hour = $hour;

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

@param string

@return Job
Set the hour