Trait luya\web\jsonld\LocalBusinessTrait
Local Business Trait
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getCurrenciesAccepted() | Get accepted currencies | luya\web\jsonld\LocalBusinessTrait |
| getOpeningHours() | Get opening hours | luya\web\jsonld\LocalBusinessTrait |
| getPaymentAccepted() | Get payment Accepted | luya\web\jsonld\LocalBusinessTrait |
| getPriceRange() | Get price range | luya\web\jsonld\LocalBusinessTrait |
| setCurrenciesAccepted() | Set accepted currencies | luya\web\jsonld\LocalBusinessTrait |
| setOpeningHours() | Set Opening Hours | luya\web\jsonld\LocalBusinessTrait |
| setPaymentAccepted() | Set Payment Accepted | luya\web\jsonld\LocalBusinessTrait |
| setPriceRange() | Set Price range | luya\web\jsonld\LocalBusinessTrait |
Method Details
Get accepted currencies
| public string getCurrenciesAccepted ( ) |
public function getCurrenciesAccepted()
{
return $this->_currenciesAccpeted;
}
Get opening hours
| public string getOpeningHours ( ) |
public function getOpeningHours()
{
return $this->_openingHours;
}
Get payment Accepted
| public string getPaymentAccepted ( ) |
public function getPaymentAccepted()
{
return $this->_paymentAccepted;
}
Get price range
| public string getPriceRange ( ) |
public function getPriceRange()
{
return $this->_priceRange;
}
Set accepted currencies
| public static setCurrenciesAccepted ( luya\web\jsonld\CurrencyValue $currency ) | ||
| $currency | luya\web\jsonld\CurrencyValue | |
public function setCurrenciesAccepted(CurrencyValue $currency)
{
$this->_currenciesAccpeted = $currency->getValue();
return $this;
}
Set Opening Hours
| public static setOpeningHours ( luya\web\jsonld\OpeningHoursValue $openingHours ) | ||
| $openingHours | luya\web\jsonld\OpeningHoursValue | |
public function setOpeningHours(OpeningHoursValue $openingHours)
{
$this->_openingHours = $openingHours->getValue();
return $this;
}
Set Payment Accepted
| public static setPaymentAccepted ( $payment ) | ||
| $payment | string | |
public function setPaymentAccepted($payment)
{
$this->_paymentAccepted = $payment;
return $this;
}
Set Price range
| public static setPriceRange ( $priceRange ) | ||
| $priceRange | string | |
public function setPriceRange($priceRange)
{
$this->_priceRange = $priceRange;
return $this;
}