src/Money.php
public static function zero($currency, Context $context = null) : Money
    {
        if (! $currency instanceof Currency) {
            $currency = Currency::of($currency);
        }

        if ($context === null) {
            $context = new DefaultContext();
        }

        $amount = BigDecimal::zero();

        return self::create($amount, $currency, $context);
    }
public static function zero($currency, Context $context = null) : Money
    {
        if (! $currency instanceof Currency) {
            $currency = Currency::of($currency);
        }

        if ($context === null) {
            $context = new DefaultContext();
        }

        $amount = BigDecimal::zero();

        return self::create($amount, $currency, $context);
    }
public static function zero ( $ currency , Context $ context = null ) : Money { if ( ! $ currency instanceof Currency ) { $ currency = Currency :: of ( $ currency ) ; } if ( $ context === null ) { $ context = new DefaultContext ( ) ; } $ amount = BigDecimal :: zero ( ) ; return self :: create ( $ amount , $ currency , $ context ) ; }
Returns a Money with zero value, in the given currency.

By default, the money is created with a DefaultContext: it has the default scale for the currency.
A Context instance can be provided to override the default.

@param Currency|string|int $currency The Currency instance, ISO currency code or ISO numeric currency code.
@param Context|null        $context  An optional context.

@return Money
Returns a Money with zero value in the given currency .