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

        return new Period(
            $this->years * $scalar,
            $this->months * $scalar,
            $this->days * $scalar
        );
    }
public function multipliedBy(int $scalar) : Period
    {
        if ($scalar === 1) {
            return $this;
        }

        return new Period(
            $this->years * $scalar,
            $this->months * $scalar,
            $this->days * $scalar
        );
    }
public function multipliedBy ( int $ scalar ) : Period { if ( $ scalar === 1 ) { return $ this ; } return new Period ( $ this -> years * $ scalar , $ this -> months * $ scalar , $ this -> days * $ scalar ) ; }
Returns a new Period with each value multiplied by the given scalar.

@param int $scalar

@return Period
Returns a new Period with each value multiplied by the given scalar .