src/Entity/ProductList.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductListRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ProductListRepository::class)
  7.  */
  8. class ProductList
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.      /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private $idProduct;
  20.     /**
  21.      * @ORM\Column(type="json", nullable=true)
  22.      */
  23.     private $product = [];
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $categorie ;
  28.       /**
  29.      * @ORM\Column(type="json", nullable=true)
  30.      */
  31.     private $defaultImage = [];
  32.     /**
  33.      * @ORM\Column(type="boolean", nullable=true)
  34.      */
  35.     private $brand;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.      public function getIdProduct(): ?string
  41.     {
  42.         return $this->idProduct;
  43.     }
  44.     public function setIdProduct(string $idProduct): self
  45.     {
  46.         $this->idProduct $idProduct;
  47.         return $this;
  48.     }
  49.     public function getProduct(): array
  50.     {
  51.         return $this->product;
  52.     }
  53.     public function setProduct(array $product): self
  54.     {
  55.         $this->product $product;
  56.         return $this;
  57.     }
  58.     public function getCategorie(): ?string
  59.     {
  60.         return $this->categorie;
  61.     }
  62.     public function setCategorie(string $categorie): self
  63.     {
  64.         $this->categorie $categorie;
  65.         return $this;
  66.     }
  67.     public function getDefaultImage(): array
  68.     {
  69.         return $this->defaultImage;
  70.     }
  71.     public function setDefaultImage(array $defaultImage): self
  72.     {
  73.         $this->defaultImage $defaultImage;
  74.         return $this;
  75.     }
  76.     public function getBrand(): ?bool
  77.     {
  78.         return $this->brand;
  79.     }
  80.     public function setBrand(?bool $brand): self
  81.     {
  82.         $this->brand $brand;
  83.         return $this;
  84.     }
  85. }