Class luya\web\jsonld\PriceValue

Inheritanceluya\web\jsonld\PriceValue » luya\web\jsonld\BaseValue
Available since version1.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.

Method Details

Hide inherited methods

__construct() public method

public void __construct ( $price )
$price

                public function __construct($price)
{
    $this->_price = $price;
}

            
getValue() public method

public void getValue ( )

                public function getValue()
{
    return str_replace(",", ".", $this->_price);
}