src/Property/Event/RecurrenceRule.php
public function setByMonth($month)
    {
        if (!is_integer($month) || $month <= 0 || $month > 12) {
            throw new InvalidArgumentException('Invalid value for BYMONTH');
        }

        $this->byMonth = $month;

        $this->canUseBySetPos = true;

        return $this;
    }
public function setByMonth($month)
    {
        if (!is_integer($month) || $month <= 0 || $month > 12) {
            throw new InvalidArgumentException('Invalid value for BYMONTH');
        }

        $this->byMonth = $month;

        $this->canUseBySetPos = true;

        return $this;
    }
public function setByMonth ( $ month ) { if ( ! is_integer ( $ month ) || $ month <= 0 || $ month > 12 ) { throw new InvalidArgumentException ( 'Invalid value for BYMONTH' ) ; } $ this -> byMonth = $ month ; $ this -> canUseBySetPos = true ; return $ this ; }
The BYMONTH rule part specifies a COMMA-separated list of months of the year.
Valid values are 1 to 12.

@param int $month

@throws \InvalidArgumentException

@return $this
The BYMONTH rule part specifies a COMMA - separated list of months of the year . Valid values are 1 to 12 .