src/LocalDateTime.php
public function plusMonths(int $months) : LocalDateTime
    {
        if ($months === 0) {
            return $this;
        }

        return new LocalDateTime($this->date->plusMonths($months), $this->time);
    }
public function plusMonths(int $months) : LocalDateTime
    {
        if ($months === 0) {
            return $this;
        }

        return new LocalDateTime($this->date->plusMonths($months), $this->time);
    }
public function plusMonths ( int $ months ) : LocalDateTime { if ( $ months === 0 ) { return $ this ; } return new LocalDateTime ( $ this -> date -> plusMonths ( $ months ) , $ this -> time ) ; }
Returns a copy of this LocalDateTime with the specified period in months added.

@param int $months

@return LocalDateTime
Returns a copy of this LocalDateTime with the specified period in months added .