/
home
/
ubuntu
/
html
/
mixchief_app
/
src
/
Entity
/
Upload File
HOME
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * Item * * @ORM\Table(name="item") * @ORM\Entity(repositoryClass="App\Repository\ItemRepository") */ class Item { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="name", type="string", length=255, unique=false) */ private $name; /** * @var string * * @ORM\Column(name="description", type="string", length=255, unique=false) */ private $description; /** * @var float * * @ORM\Column(name="sellingPrice", type="float") */ private $sellingPrice; /** * @var float * * @ORM\Column(name="discount", type="float") */ private $discount; /** * @var int * * @ORM\Column(name="c_id", type="integer") */ private $cId; /** * @var App\Entity\Groups * * @ORM\ManyToOne(targetEntity="App\Entity\Groups", inversedBy="items") */ private $category; /** * @var string * * @ORM\Column(name="img", type="string", length=255, nullable=true) */ private $img; /** * @var bool * * @ORM\Column(name="deleted", type="boolean", nullable=true) */ private $deleted; /** * @var int * * @ORM\Column(name="user_id", type="integer", nullable=true) */ private $userId; /** * Set userId * * @param int $userId * * @return Groups */ public function setUserId($userId) { $this->userId = $userId; return $this; } /** * Get userId * * @return int */ public function getUserId() { return $this->userId; } /** * 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 description * * @param string $description * * @return Item */ public function setDescription($description) { $this->description = $description; return $this; } /** * Get description * * @return string */ public function getDescription() { return $this->description; } /** * 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 sellingPrice * * @param float $sellingPrice * * @return Item */ public function setSellingPrice($sellingPrice) { $this->sellingPrice = $sellingPrice; return $this; } /** * Get sellingPrice * * @return float */ public function getSellingPrice() { return $this->sellingPrice; } /** * 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 cId * * @param integer $cId * * @return Item */ public function setCId($cId) { $this->cId = $cId; return $this; } /** * Get cId * * @return int */ public function getCId() { return $this->cId; } /** * 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; } }