src/Entity/SearchProduct.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. class SearchProduct
  4. {
  5.     private $minPrice null;
  6.     private $maxPrice null;
  7.     private $markets = [];
  8.     private $categories = [];
  9.     private $colors = [];
  10.     private $tags = [];
  11.     private $specialOffert false;
  12.     private $featured false;
  13.     private $bestSellers false;
  14.     private $newArrival false;
  15.     private $promotional false;
  16.     public function getMinPrice(): ?int
  17.     {
  18.         return $this->minPrice;
  19.     }
  20.     public function setMinPrice($minPrice): self
  21.     {
  22.         $this->minPrice is_numeric($minPrice) ? $minPrice ;
  23.         return $this;
  24.     }
  25.     public function getMaxPrice(): ?int
  26.     {
  27.         return $this->maxPrice;
  28.     }
  29.     public function setMaxPrice($maxPrice): self
  30.     {
  31.         $this->maxPrice is_numeric($maxPrice) ? $maxPrice ;
  32.         return $this;
  33.     }
  34.     public function getMarkets(): ?array
  35.     {
  36.         return $this->markets;
  37.     }
  38.     public function setMarkets(?array $markets): ?array
  39.     {
  40.         $this->markets $markets;
  41.         return $this->markets;
  42.     }
  43.     public function getCategories(): ?array
  44.     {
  45.         return $this->categories;
  46.     }
  47.     public function setCategories(?array $categories): ?array
  48.     {
  49.         $this->categories $categories;
  50.         return $this->categories;
  51.     }
  52.     public function getColors(): ?array
  53.     {
  54.         return $this->colors;
  55.     }
  56.     public function setColors(?array $colors): ?array
  57.     {
  58.         $this->colors $colors;
  59.         return $this->colors;
  60.     }
  61.     public function getTags(): ?array
  62.     {
  63.         return $this->tags;
  64.     }
  65.     public function setTags(?array $tags): ?array
  66.     {
  67.         $this->tags $tags;
  68.         return $this->tags;
  69.     }
  70.     /**
  71.      * @return bool
  72.      */
  73.     public function isSpecialOffert(): bool
  74.     {
  75.         return $this->specialOffert;
  76.     }
  77.     /**
  78.      * @param bool $specialOffert
  79.      */
  80.     public function setSpecialOffert(bool $specialOffert)
  81.     {
  82.         $this->specialOffert $specialOffert;
  83.     }
  84.     /**
  85.      * @return bool
  86.      */
  87.     public function isFeatured(): bool
  88.     {
  89.         return $this->featured;
  90.     }
  91.     /**
  92.      * @param bool $featured
  93.      */
  94.     public function setFeatured(bool $featured)
  95.     {
  96.         $this->featured $featured;
  97.     }
  98.     /**
  99.      * @return bool
  100.      */
  101.     public function isBestSellers(): bool
  102.     {
  103.         return $this->bestSellers;
  104.     }
  105.     /**
  106.      * @param bool $bestSellers
  107.      */
  108.     public function setBestSellers(bool $bestSellers)
  109.     {
  110.         $this->bestSellers $bestSellers;
  111.     }
  112.     /**
  113.      * @return bool
  114.      */
  115.     public function isNewArrival(): bool
  116.     {
  117.         return $this->newArrival;
  118.     }
  119.     /**
  120.      * @param bool $newArrival
  121.      */
  122.     public function setNewArrival(bool $newArrival)
  123.     {
  124.         $this->newArrival $newArrival;
  125.     }
  126.     /**
  127.      * @return bool
  128.      */
  129.     public function isPromotional(): bool
  130.     {
  131.         return $this->promotional;
  132.     }
  133.     /**
  134.      * @param bool $promotional
  135.      */
  136.     public function setPromotional(bool $promotional)
  137.     {
  138.         $this->promotional $promotional;
  139.     }
  140. }