Amount
class Amount implements CouponTypeInterface
An amount object requires the amount off, and the currency.
Properties
protected | $amount | ||
protected | $currency |
Methods
__construct(int $amount, string $currency = 'usd')
Create an amount object with currency.
array
toArray()
Return an associative array with the protected properties.
Details
at line 21
__construct(int $amount, string $currency = 'usd')
Create an amount object with currency.
at line 32
array
toArray()
Return an associative array with the protected properties.