Trait luya\web\jsonld\OfferTrait
| Uses Traits | luya\web\jsonld\ThingTrait |
|---|---|
| Implemented by | luya\web\jsonld\Offer |
| Available since version | 1.0.3 |
| Source Code | https://github.com/luyadev/luya/blob/master/core/web/jsonld/OfferTrait.php |
JsonLd Offer.
See also http://schema.org/Offer.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getPrice() | Get Price | luya\web\jsonld\OfferTrait |
| getPriceCurrency() | Get Price Currency | luya\web\jsonld\OfferTrait |
| setPrice() | Price Setter | luya\web\jsonld\OfferTrait |
| setPriceCurrency() | Price Currency Setter. | luya\web\jsonld\OfferTrait |
Method Details
Get Price Currency
| public string getPriceCurrency ( ) |
public function getPriceCurrency()
{
return $this->_priceCurrency;
}
Price Setter
| public static setPrice ( luya\web\jsonld\PriceValue $price ) | ||
| $price | luya\web\jsonld\PriceValue | |
public function setPrice(PriceValue $price)
{
$this->_price = $price->getValue();
return $this;
}
Price Currency Setter.
| public static setPriceCurrency ( luya\web\jsonld\CurrencyValue $currencyValue ) | ||
| $currencyValue | luya\web\jsonld\CurrencyValue | |
public function setPriceCurrency(CurrencyValue $currencyValue)
{
$this->_priceCurrency = $currencyValue->getValue();
return $this;
}