<?phpnamespace App\Services;use App\Entity\Label;use App\Entity\Artist;/** * [Service de gestion de la recherche] */class Search { /** * @var array */ public $styles = []; /** * @var Label */ public $label; /** * @var Artist */ public $artist; /** * @var int */ public $year; /** * @var string */ public $q; /** * @var bool */ public $inStock; /** * @var bool */ public $promo; /** * @var bool */ public $repress; /** * @var ?bool */ public $neuf; /** * @var ?bool */ public $occasion; /** * @var ?bool */ public $homeprod; /** * Get the value of styles */ public function getStyles() { return $this->styles; } /** * Set the value of styles * * @return self */ public function setStyles($styles) { $this->styles = $styles; return $this; } /** * Get the value of label */ public function getLabel() { return $this->label; } /** * Set the value of label * * @return self */ public function setLabel($label) { $this->label = $label; return $this; } /** * Get the value of artist */ public function getArtist() { return $this->artist; } /** * Set the value of artist * * @return self */ public function setArtist($artist) { $this->artist = $artist; return $this; } /** * Get the value of year */ public function getYear() { return $this->year; } /** * Set the value of year * * @return self */ public function setYear($year) { $this->year = $year; return $this; } /** * Get the value of q * * @return string */ public function getQ() { return $this->q; } /** * Set the value of q * * @param string $q * * @return self */ public function setQ(string $q) { $this->q = $q; return $this; } /** * Get the value of inStock * * @return bool */ public function getInStock() { return $this->inStock; } /** * Set the value of inStock * * @param bool $inStock * * @return self */ public function setInStock(bool $inStock) { $this->inStock = $inStock; return $this; } /** * Get the value of promo * * @return bool */ public function getPromo() { return $this->promo; } /** * Set the value of promo * * @param bool $promo * * @return self */ public function setPromo(bool $promo) { $this->promo = $promo; return $this; } /** * Get the value of repress field * * @return bool */ public function getRepress() { return $this->repress; } /** * Set the value of repress field * * @param bool $repress * * @return self */ public function setRepress(bool $repress) { $this->repress = $repress; return $this; } public function isNeuf(): ?bool { return $this->neuf; } public function setNeuf(bool $neuf): void { $this->neuf = $neuf; } public function isOccasion(): ?bool { return $this->occasion; } public function setOccasion(bool $occasion): void { $this->occasion = $occasion; } public function getHomeprod(): ?bool { return $this->homeprod; } public function setHomeprod(?bool $homeprod): void { $this->homeprod = $homeprod; }}