Class luya\web\jsonld\PriceValue
| Inheritance | luya\web\jsonld\PriceValue ยป luya\web\jsonld\BaseValue |
|---|---|
| Available since version | 1.2.2 |
| Source Code | https://github.com/luyadev/luya/blob/master/core/web/jsonld/PriceValue.php |
The price accepted.
Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | luya\web\jsonld\PriceValue | |
| getValue() | luya\web\jsonld\PriceValue |
Method Details
| public void __construct ( $price ) | ||
| $price | ||
public function __construct($price)
{
$this->_price = $price;
}
| public void getValue ( ) |
public function getValue()
{
return str_replace(",", ".", $this->_price);
}