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

        $this->byYearDay = $day;

        $this->canUseBySetPos = true;

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

        $this->byYearDay = $day;

        $this->canUseBySetPos = true;

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

@param int $day

@throws \InvalidArgumentException

@return $this
The BYYEARDAY rule part specifies a COMMA - separated list of days of the year . Valid values are 1 to 366 or - 366 to - 1 .