/
var
/
www
/
html
/
restaurants
/
src
/
Document
/
Upload File
HOME
<?php namespace App\Document; use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; use App\Repository\ItemRepository; /** * @MongoDB\Document(collection="fooding", repositoryClass=ItemRepository::class) */ class Item { /** * @MongoDB\Id */ private $id; /** * @MongoDB\Field(type="string") */ private $name; /** * @MongoDB\Field(type="float") */ private $price; /** * @MongoDB\Field(type="float") */ private $discount; /** * @MongoDB\Field(type="string") */ private $category; /** * @MongoDB\Field(type="string") */ private $img; /** * @MongoDB\Field(type="bool") */ private $deleted; /** * @MongoDB\Field(type="string") */ private $owner; /** * @MongoDB\Field(type="string") */ private $description; /** * @MongoDB\Field(type="string") */ private $place_slug; /** * @MongoDB\Field(type="string") */ private $place_name; /** * @MongoDB\Field(type="string") */ private $created; /** * Set owner * * @param string $owner */ public function setOwner($owner) { $this->owner = $owner; return $this; } /** * Get owner * * @return string */ public function getOwner() { return $this->owner; } /** * Get id * * @return int */ public function getId() { return $this->id; } /** * Set name * * @param string $name * * @return Item */ public function setName($name) { $this->name = $name; return $this; } /** * Get name * * @return string */ public function getName() { return $this->name; } /** * Set category * * @param string $category * * @return Item */ public function setCategory($category) { $this->category = $category; return $this; } /** * Get category * * @return string */ public function getCategory() { return $this->category; } /** * Set Price * * @param float $price * * @return Item */ public function setPrice($price) { $this->price = $price; return $this; } /** * Get Price * * @return float */ public function getPrice() { return $this->price; } /** * Set deleted * * @param float $deleted * * @return Item */ public function setDeleted($deleted) { $this->deleted = $deleted; return $this; } /** * Get deleted * * @return boolean */ public function getDeleted() { return $this->deleted; } /** * Set discount * * @param float $discount * * @return Item */ public function setDiscount($discount) { $this->discount = $discount; return $this; } /** * Get discount * * @return float */ public function getDiscount() { return $this->discount; } /** * Set img * * @param string $img * * @return Item */ public function setImg($img) { $this->img = $img; return $this; } /** * Get img * * @return string */ public function getImg() { return $this->img; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function getPlaceSlug(): ?string { return $this->place_slug; } public function setPlaceSlug(?string $placeSlug): self { $this->place_slug = $placeSlug; return $this; } public function getPlaceName(): ?string { return $this->place_name; } public function setPlaceName(?string $placeName): self { $this->place_name = $placeName; return $this; } public function getCreated(): ?string { return $this->created; } public function setCreated(?string $created): self { $this->created = $created; return $this; } }