Trait luya\web\jsonld\FoodEstablishmentTrait
Implemented by | luya\web\jsonld\BarOrPub, luya\web\jsonld\CafeOrCoffeeShop, luya\web\jsonld\FoodEstablishment, luya\web\jsonld\Restaurant |
---|---|
Available since version | 1.0.14 |
Source Code | https://github.com/luyadev/luya/blob/master/core/web/jsonld/FoodEstablishmentTrait.php |
Food Establishment Trait.
Public Methods
Method | Description | Defined By |
---|---|---|
getAcceptsReservations() | Get Accepts Reserverations | luya\web\jsonld\FoodEstablishmentTrait |
getHasMenu() | Get Has menu | luya\web\jsonld\FoodEstablishmentTrait |
getServesCuisine() | Get serves Cuisine | luya\web\jsonld\FoodEstablishmentTrait |
getStarRating() | Get Star Rating | luya\web\jsonld\FoodEstablishmentTrait |
setAcceptsReservations() | Accepts Reservations | luya\web\jsonld\FoodEstablishmentTrait |
setHasMenu() | Set has menu | luya\web\jsonld\FoodEstablishmentTrait |
setServesCuisine() | Set Serves Cuisine | luya\web\jsonld\FoodEstablishmentTrait |
setStarRating() | Set Star Rating | luya\web\jsonld\FoodEstablishmentTrait |
Method Details
Get Accepts Reserverations
public string getAcceptsReservations ( ) |
public function getAcceptsReservations()
{
return $this->_acceptsReservations;
}
Get serves Cuisine
public string getServesCuisine ( ) |
public function getServesCuisine()
{
return $this->_servesCuisine;
}
Get Star Rating
public luya\web\jsonld\Rating getStarRating ( ) |
public function getStarRating()
{
return $this->_starRating;
}
Accepts Reservations
public static setAcceptsReservations ( $acceptsReservations ) | ||
$acceptsReservations | string |
public function setAcceptsReservations($acceptsReservations)
{
$this->_acceptsReservations = $acceptsReservations;
return $this;
}
Set has menu
public static setHasMenu ( $hasMenu ) | ||
$hasMenu | string |
public function setHasMenu($hasMenu)
{
$this->_hasMenu = $hasMenu;
return $this;
}
Set Serves Cuisine
public static setServesCuisine ( $servesCuisine ) | ||
$servesCuisine | string |
public function setServesCuisine($servesCuisine)
{
$this->_servesCuisine = $servesCuisine;
return $this;
}
Set Star Rating
public static setStarRating ( luya\web\jsonld\Rating $rating ) | ||
$rating | luya\web\jsonld\Rating |
public function setStarRating(Rating $rating)
{
$this->_starRating = $rating;
return $this;
}