src/Services/Search.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Services;
  3. use App\Entity\Label;
  4. use App\Entity\Artist;
  5. /**
  6.  * [Service de gestion de la recherche]
  7.  */
  8. class Search {
  9.     /**
  10.      * @var array
  11.      */
  12.     public $styles = [];
  13.     /**
  14.      * @var Label
  15.      */
  16.     public $label;
  17.     /**
  18.      * @var Artist
  19.      */
  20.     public $artist;
  21.     /**
  22.      * @var int
  23.      */
  24.     public $year;
  25.     /**
  26.      * @var string
  27.      */
  28.     public $q;
  29.     /**
  30.      * @var bool
  31.      */
  32.     public $inStock;
  33.     /**
  34.      * @var bool
  35.      */
  36.     public $promo;
  37.     /**
  38.      * @var bool
  39.      */
  40.     public $repress;
  41.     /**
  42.      * @var ?bool
  43.      */
  44.     public $neuf;
  45.     /**
  46.      * @var ?bool
  47.      */
  48.     public $occasion;
  49.     /**
  50.      * @var ?bool
  51.      */
  52.     public $homeprod;
  53.     /**
  54.      * Get the value of styles
  55.      */ 
  56.     public function getStyles()
  57.     {
  58.         return $this->styles;
  59.     }
  60.     /**
  61.      * Set the value of styles
  62.      *
  63.      * @return  self
  64.      */ 
  65.     public function setStyles($styles)
  66.     {
  67.         $this->styles $styles;
  68.         return $this;
  69.     }
  70.     /**
  71.      * Get the value of label
  72.      */ 
  73.     public function getLabel()
  74.     {
  75.         return $this->label;
  76.     }
  77.     /**
  78.      * Set the value of label
  79.      *
  80.      * @return  self
  81.      */ 
  82.     public function setLabel($label)
  83.     {
  84.         $this->label $label;
  85.         return $this;
  86.     }
  87.     /**
  88.      * Get the value of artist
  89.      */ 
  90.     public function getArtist()
  91.     {
  92.         return $this->artist;
  93.     }
  94.     /**
  95.      * Set the value of artist
  96.      *
  97.      * @return  self
  98.      */ 
  99.     public function setArtist($artist)
  100.     {
  101.         $this->artist $artist;
  102.         return $this;
  103.     }
  104.     /**
  105.      * Get the value of year
  106.      */ 
  107.     public function getYear()
  108.     {
  109.         return $this->year;
  110.     }
  111.     /**
  112.      * Set the value of year
  113.      *
  114.      * @return  self
  115.      */ 
  116.     public function setYear($year)
  117.     {
  118.         $this->year $year;
  119.         return $this;
  120.     }
  121.     /**
  122.      * Get the value of q
  123.      *
  124.      * @return  string
  125.      */ 
  126.     public function getQ()
  127.     {
  128.         return $this->q;
  129.     }
  130.     /**
  131.      * Set the value of q
  132.      *
  133.      * @param  string  $q
  134.      *
  135.      * @return  self
  136.      */ 
  137.     public function setQ(string $q)
  138.     {
  139.         $this->$q;
  140.         return $this;
  141.     }
  142.     /**
  143.      * Get the value of inStock
  144.      *
  145.      * @return  bool
  146.      */ 
  147.     public function getInStock()
  148.     {
  149.         return $this->inStock;
  150.     }
  151.     /**
  152.      * Set the value of inStock
  153.      *
  154.      * @param  bool  $inStock
  155.      *
  156.      * @return  self
  157.      */ 
  158.     public function setInStock(bool $inStock)
  159.     {
  160.         $this->inStock $inStock;
  161.         return $this;
  162.     }
  163.     /**
  164.      * Get the value of promo
  165.      *
  166.      * @return  bool
  167.      */ 
  168.     public function getPromo()
  169.     {
  170.         return $this->promo;
  171.     }
  172.     /**
  173.      * Set the value of promo
  174.      *
  175.      * @param  bool  $promo
  176.      *
  177.      * @return  self
  178.      */ 
  179.     public function setPromo(bool $promo)
  180.     {
  181.         $this->promo $promo;
  182.         return $this;
  183.     }
  184.     /**
  185.      * Get the value of repress field
  186.      *
  187.      * @return  bool
  188.      */ 
  189.     public function getRepress()
  190.     {
  191.         return $this->repress;
  192.     }
  193.     /**
  194.      * Set the value of repress field
  195.      *
  196.      * @param  bool  $repress
  197.      *
  198.      * @return  self
  199.      */ 
  200.     public function setRepress(bool $repress)
  201.     {
  202.         $this->repress $repress;
  203.         return $this;
  204.     }
  205.     public function isNeuf(): ?bool
  206.     {
  207.         return $this->neuf;
  208.     }
  209.     public function setNeuf(bool $neuf): void
  210.     {
  211.         $this->neuf $neuf;
  212.     }
  213.     public function isOccasion(): ?bool
  214.     {
  215.         return $this->occasion;
  216.     }
  217.     public function setOccasion(bool $occasion): void
  218.     {
  219.         $this->occasion $occasion;
  220.     }
  221.     public function getHomeprod(): ?bool
  222.     {
  223.         return $this->homeprod;
  224.     }
  225.     public function setHomeprod(?bool $homeprod): void
  226.     {
  227.         $this->homeprod $homeprod;
  228.     }
  229. }