Trait luya\web\jsonld\OfferTrait

Uses Traitsluya\web\jsonld\ThingTrait
Implemented byluya\web\jsonld\Offer
Available since version1.0.3

JsonLd Offer.

See also http://schema.org/Offer.

Method Details

Hide inherited methods

getPrice() public method (available since version 1.2.2)

Get Price

public mixed getPrice ( )

                public function getPrice()
{
    return $this->_price;
}

            
getPriceCurrency() public method (available since version 1.2.2)

Get Price Currency

public string getPriceCurrency ( )

                public function getPriceCurrency()
{
    return $this->_priceCurrency;
}

            
setPrice() public method (available since version 1.2.2)

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;
}

            
setPriceCurrency() public method (available since version 1.2.2)

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;
}