src/Model/Search.php line 7

Open in your IDE?
  1. <?php
  2. namespace App\Model;
  3. /**
  4.  * Permet de créer un formulaire de recherche grace à un SearchType
  5.  */
  6. class Search
  7. {
  8.     /**
  9.      * @var string
  10.      */
  11.     private $string '';
  12.     /**
  13.      * @var array
  14.      */
  15.     private $categories = [];
  16.     /**
  17.      * Get the value of string
  18.      */ 
  19.     public function getString()
  20.     {
  21.         return $this->string;
  22.     }
  23.     /**
  24.      * Set the value of string
  25.      *
  26.      * @return  self
  27.      */ 
  28.     public function setString($string)
  29.     {
  30.         $this->string $string;
  31.         return $this;
  32.     }
  33.     /**
  34.      * Get the value of categories
  35.      */ 
  36.     public function getCategories()
  37.     {
  38.         return $this->categories;
  39.     }
  40.     /**
  41.      * Set the value of categories
  42.      *
  43.      * @return  self
  44.      */ 
  45.     public function setCategories($categories)
  46.     {
  47.         $this->categories $categories;
  48.         return $this;
  49.     }
  50. }