src/LocalDateTime.php
public function plusPeriod(Period $period) : LocalDateTime
    {
        $date = $this->date->plusPeriod($period);

        if ($date === $this->date) {
            return $this;
        }

        return new LocalDateTime($date, $this->time);
    }
public function plusPeriod(Period $period) : LocalDateTime
    {
        $date = $this->date->plusPeriod($period);

        if ($date === $this->date) {
            return $this;
        }

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

@param Period $period

@return LocalDateTime
Returns a copy of this LocalDateTime with the specified Period added .