src/YearWeek.php
public function plusYears(int $years) : YearWeek
    {
        if ($years === 0) {
            return $this;
        }

        return $this->withYear($this->year + $years);
    }
public function plusYears(int $years) : YearWeek
    {
        if ($years === 0) {
            return $this;
        }

        return $this->withYear($this->year + $years);
    }
public function plusYears ( int $ years ) : YearWeek { if ( $ years === 0 ) { return $ this ; } return $ this -> withYear ( $ this -> year + $ years ) ; }
Returns a copy of this YearWeek with the specified period in years added.

If the week is 53 and the new year does not have 53 weeks, the week will be adjusted to be 52.

@param int $years

@return YearWeek
Returns a copy of this YearWeek with the specified period in years added .