Trait luya\web\jsonld\LocalBusinessTrait

Implemented byluya\web\jsonld\BarOrPub, luya\web\jsonld\CafeOrCoffeeShop, luya\web\jsonld\EntertainmentBusiness, luya\web\jsonld\FoodEstablishment, luya\web\jsonld\LocalBusiness, luya\web\jsonld\NightClub, luya\web\jsonld\Restaurant
Available since version1.0.14
Source Code https://github.com/luyadev/luya/blob/master/core/web/jsonld/LocalBusinessTrait.php

Local Business Trait

Method Details

Hide inherited methods

getCurrenciesAccepted() public method

Get accepted currencies

public string getCurrenciesAccepted ( )

                public function getCurrenciesAccepted()
{
    return $this->_currenciesAccpeted;
}

            
getOpeningHours() public method

Get opening hours

public string getOpeningHours ( )

                public function getOpeningHours()
{
    return $this->_openingHours;
}

            
getPaymentAccepted() public method

Get payment Accepted

public string getPaymentAccepted ( )

                public function getPaymentAccepted()
{
    return $this->_paymentAccepted;
}

            
getPriceRange() public method

Get price range

public string getPriceRange ( )

                public function getPriceRange()
{
    return $this->_priceRange;
}

            
setCurrenciesAccepted() public method

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

            
setOpeningHours() public method

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

            
setPaymentAccepted() public method

Set Payment Accepted

public static setPaymentAccepted ( $payment )
$payment string

                public function setPaymentAccepted($payment)
{
    $this->_paymentAccepted = $payment;
    return $this;
}

            
setPriceRange() public method

Set Price range

public static setPriceRange ( $priceRange )
$priceRange string

                public function setPriceRange($priceRange)
{
    $this->_priceRange = $priceRange;
    return $this;
}