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

        $this->byWeekNo = $value;

        $this->canUseBySetPos = true;

        return $this;
    }
public function setByWeekNo($value)
    {
        if (!is_integer($value) || $value > 53 || $value < -53 || $value === 0) {
            throw new InvalidArgumentException('Invalid value for BYWEEKNO');
        }

        $this->byWeekNo = $value;

        $this->canUseBySetPos = true;

        return $this;
    }
public function setByWeekNo ( $ value ) { if ( ! is_integer ( $ value ) || $ value > 53 || $ value < - 53 || $ value === 0 ) { throw new InvalidArgumentException ( 'Invalid value for BYWEEKNO' ) ; } $ this -> byWeekNo = $ value ; $ this -> canUseBySetPos = true ; return $ this ; }
The BYWEEKNO rule part specifies a COMMA-separated list of ordinals specifying weeks of the year.
Valid values are 1 to 53 or -53 to -1.

@param int $value

@throws \InvalidArgumentException

@return $this
The BYWEEKNO rule part specifies a COMMA - separated list of ordinals specifying weeks of the year . Valid values are 1 to 53 or - 53 to - 1 .