src/Property/Event/RecurrenceRule.php
public function setByHour($value)
    {
        if (!is_integer($value) || $value < 0 || $value > 23) {
            throw new \InvalidArgumentException('Invalid value for BYHOUR');
        }

        $this->byHour = $value;

        $this->canUseBySetPos = true;

        return $this;
    }
public function setByHour($value)
    {
        if (!is_integer($value) || $value < 0 || $value > 23) {
            throw new \InvalidArgumentException('Invalid value for BYHOUR');
        }

        $this->byHour = $value;

        $this->canUseBySetPos = true;

        return $this;
    }
public function setByHour ( $ value ) { if ( ! is_integer ( $ value ) || $ value < 0 || $ value > 23 ) { throw new \ InvalidArgumentException ( 'Invalid value for BYHOUR' ) ; } $ this -> byHour = $ value ; $ this -> canUseBySetPos = true ; return $ this ; }
The BYHOUR rule part specifies a COMMA-separated list of hours of the day.
Valid values are 0 to 23.

@param int $value

@return $this

@throws \InvalidArgumentException
The BYHOUR rule part specifies a COMMA - separated list of hours of the day . Valid values are 0 to 23 .