CurrencyCommandAttributeTrait
Trait CurrencyCommandAttributeTrait
Trait containing methods to manage the currency attribute of Yigim payment system commands. The currency attribute represents the numeric ISO 4217 currency code.
Table of Contents
Properties
- $currency : string
- The numeric ISO 4217 currency code.
Methods
- getCurrency() : string
- Get the currency attribute.
- setCurrency() : void
- Set the currency attribute.
Properties
$currency
The numeric ISO 4217 currency code.
private
string
$currency
= "AZN"
This property represents the currency code used for transactions. It follows the ISO 4217 standard for currency codes. The default value is "AZN" (Azerbaijani Manat).
Methods
getCurrency()
Get the currency attribute.
public
getCurrency() : string
Return values
string —The numeric ISO 4217 currency code.
setCurrency()
Set the currency attribute.
public
setCurrency(string $currency) : void
Parameters
- $currency : string
-
The numeric ISO 4217 currency code.