Amount
Methods
Amount::__construct()
Signature
public function __construct(string $value, string $currency_code = 'USD');Example
$amount = new Amount('100.00', 'USD');Amount::of()
Signature
public static function of(string $value, string $currency_code = 'USD'): Amount;Example
$amount = Amount::of('100.00', 'USD');Amount::getCurrencyCode()
Signature
Example
Amount::getValue()
Signature
Example
Amount::toArray()
Signature
Example
Last updated
Was this helpful?