Price
in package
Price class
Tags
Table of Contents
- $currency : string
- The currency of the price.
- $value : string
- The price.
- __construct() : mixed
- Price constructor.
- get_currency() : string
- Get the currency of the price.
- get_value() : string
- Get value of the price.
Properties
$currency
The currency of the price.
protected
string
$currency
$value
The price.
protected
string
$value
Methods
__construct()
Price constructor.
public
__construct(string $value, string $currency) : mixed
Parameters
- $value : string
-
The value of the price.
- $currency : string
-
The currency of the price.
Return values
mixed —get_currency()
Get the currency of the price.
public
get_currency() : string
Return values
string —get_value()
Get value of the price.
public
get_value() : string