src/Property/Event/RecurrenceRule.php
public function setByMonthDay($day)
    {
        if (!is_integer($day) || $day > 31 || $day < -31 || $day === 0) {
            throw new InvalidArgumentException('Invalid value for BYMONTHDAY');
        }

        $this->byMonthDay = $day;

        $this->canUseBySetPos = true;

        return $this;
    }
public function setByMonthDay($day)
    {
        if (!is_integer($day) || $day > 31 || $day < -31 || $day === 0) {
            throw new InvalidArgumentException('Invalid value for BYMONTHDAY');
        }

        $this->byMonthDay = $day;

        $this->canUseBySetPos = true;

        return $this;
    }
public function setByMonthDay ( $ day ) { if ( ! is_integer ( $ day ) || $ day > 31 || $ day < - 31 || $ day === 0 ) { throw new InvalidArgumentException ( 'Invalid value for BYMONTHDAY' ) ; } $ this -> byMonthDay = $ day ; $ this -> canUseBySetPos = true ; return $ this ; }
The BYMONTHDAY rule part specifies a COMMA-separated list of days of the month.
Valid values are 1 to 31 or -31 to -1.

@param int $day

@return $this

@throws \InvalidArgumentException
The BYMONTHDAY rule part specifies a COMMA - separated list of days of the month . Valid values are 1 to 31 or - 31 to - 1 .