Money\Money::fromAmount PHP Метод

fromAmount() публичный статический Метод

Creates a Money object from its amount and currency
public static fromAmount ( numeric $amount, Currency $currency ) : Money
$amount numeric
$currency Currency
Результат Money
    public static function fromAmount($amount, Currency $currency)
    {
        self::assertNumeric($amount);
        return new self((string) $amount, $currency);
    }