src/LocalTime.php
public function plusDuration(Duration $duration) : LocalTime
    {
        return $this
            ->plusSeconds($duration->getSeconds())
            ->plusNanos($duration->getNanos());
    }
public function plusDuration(Duration $duration) : LocalTime
    {
        return $this
            ->plusSeconds($duration->getSeconds())
            ->plusNanos($duration->getNanos());
    }
public function plusDuration ( Duration $ duration ) : LocalTime { return $ this -> plusSeconds ( $ duration -> getSeconds ( ) ) -> plusNanos ( $ duration -> getNanos ( ) ) ; }
Returns a copy of this LocalTime with the specific duration added.

The calculation wraps around midnight.

@param Duration $duration

@return LocalTime
Returns a copy of this LocalTime with the specific duration added .