src/Duration.php
public function multipliedBy(int $multiplicand) : Duration
    {
        if ($multiplicand === 1) {
            return $this;
        }

        $seconds = $this->seconds * $multiplicand;
        $totalnanos = $this->nanos * $multiplicand;

        return Duration::ofSeconds($seconds, $totalnanos);
    }
public function multipliedBy(int $multiplicand) : Duration
    {
        if ($multiplicand === 1) {
            return $this;
        }

        $seconds = $this->seconds * $multiplicand;
        $totalnanos = $this->nanos * $multiplicand;

        return Duration::ofSeconds($seconds, $totalnanos);
    }
public function multipliedBy ( int $ multiplicand ) : Duration { if ( $ multiplicand === 1 ) { return $ this ; } $ seconds = $ this -> seconds * $ multiplicand ; $ totalnanos = $ this -> nanos * $ multiplicand ; return Duration :: ofSeconds ( $ seconds , $ totalnanos ) ; }
Returns a copy of this Duration multiplied by the given value.

@param int $multiplicand

@return \Brick\DateTime\Duration
Returns a copy of this Duration multiplied by the given value .