src/MoneyComparator.php
public function min(Money $money, Money ...$monies) : Money
    {
        $min = $money;

        foreach ($monies as $money) {
            if ($this->isGreater($min, $money)) {
                $min = $money;
            }
        }

        return $min;
    }
public function min(Money $money, Money ...$monies) : Money
    {
        $min = $money;

        foreach ($monies as $money) {
            if ($this->isGreater($min, $money)) {
                $min = $money;
            }
        }

        return $min;
    }
public function min ( Money $ money , Money ... $ monies ) : Money { $ min = $ money ; foreach ( $ monies as $ money ) { if ( $ this -> isGreater ( $ min , $ money ) ) { $ min = $ money ; } } return $ min ; }
Returns the smallest of the given monies.

The monies are compared from left to right. This distinction can be important if the exchange rate provider does
not have bidirectional exchange rates, or applies different rates depending on the direction of the conversion.

For example, when comparing [A, B, C], this method will first compare A against B, then min(A,B) against C.

If several monies are equal to the minimum value, the first one is returned.

@param Money    $money  The first money.
@param Money ...$monies The subsequent monies.

@return Money The smallest Money.

@throws CurrencyConversionException If an exchange rate is not available.
Returns the smallest of the given monies .