public static function min(...$values) : BigNumber
    {
        $min = null;

        foreach ($values as $value) {
            $value = static::of($value);

            if ($min === null || $value->isLessThan($min)) {
                $min = $value;
            }
        }

        if ($min === null) {
            throw new \InvalidArgumentException(__METHOD__ . '() expects at least one value.');
        }

        return $min;
    }
public static function min(...$values) : BigNumber
    {
        $min = null;

        foreach ($values as $value) {
            $value = static::of($value);

            if ($min === null || $value->isLessThan($min)) {
                $min = $value;
            }
        }

        if ($min === null) {
            throw new \InvalidArgumentException(__METHOD__ . '() expects at least one value.');
        }

        return $min;
    }
public static function min ( ... $ values ) : BigNumber { $ min = null ; foreach ( $ values as $ value ) { $ value = static :: of ( $ value ) ; if ( $ min === null || $ value -> isLessThan ( $ min ) ) { $ min = $ value ; } } if ( $ min === null ) { throw new \ InvalidArgumentException ( __METHOD__ . '() expects at least one value.' ) ; } return $ min ; }
Returns the minimum of the given values.

@param BigNumber|number|string ...$values The numbers to compare. All the numbers need to be convertible
to an instance of the class this method is called on.

@return static The minimum value.

@throws \InvalidArgumentException If no values are given.
@throws MathException             If an argument is not valid.
Returns the minimum of the given values .