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

        $mondayOfWeek = $this->atDay(DayOfWeek::MONDAY)->plusWeeks($weeks);

        return $mondayOfWeek->getYearWeek();
    }
public function plusWeeks(int $weeks) : YearWeek
    {
        if ($weeks === 0) {
            return $this;
        }

        $mondayOfWeek = $this->atDay(DayOfWeek::MONDAY)->plusWeeks($weeks);

        return $mondayOfWeek->getYearWeek();
    }
public function plusWeeks ( int $ weeks ) : YearWeek { if ( $ weeks === 0 ) { return $ this ; } $ mondayOfWeek = $ this -> atDay ( DayOfWeek :: MONDAY ) -> plusWeeks ( $ weeks ) ; return $ mondayOfWeek -> getYearWeek ( ) ; }
Returns a copy of this YearWeek with the specified period in weeks added.

@param int $weeks

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