for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace luya\web\jsonld;
/**
* Local Business Trait
*
* @author Basil Suter <[email protected]>
* @since 1.0.14
*/
trait LocalBusinessTrait
{
private $_currenciesAccpeted;
* Set accepted currencies
* @param CurrencyValue $currency
* @return static
public function setCurrenciesAccepted(CurrencyValue $currency)
$this->_currenciesAccpeted = $currency->getValue();
return $this;
}
* Get accepted currencies
* @return string
public function getCurrenciesAccepted()
return $this->_currenciesAccpeted;
private $_openingHours;
* Set Opening Hours
* @param OpeningHoursValue $openingHours
public function setOpeningHours(OpeningHoursValue $openingHours)
$this->_openingHours = $openingHours->getValue();
* Get opening hours
public function getOpeningHours()
return $this->_openingHours;
private $_paymentAccepted;
* Set Payment Accepted
* @param string $payment
public function setPaymentAccepted($payment)
$this->_paymentAccepted = $payment;
* Get payment Accepted
public function getPaymentAccepted()
return $this->_paymentAccepted;
private $_priceRange;
* Set Price range
* @param string $priceRange
public function setPriceRange($priceRange)
$this->_priceRange = $priceRange;
* Get price range
public function getPriceRange()
return $this->_priceRange;