diff --git a/src/AppBundle/Model/ModelSearch.php b/src/AppBundle/Model/ModelSearch.php index 9c3e877..ea1b6fb 100644 --- a/src/AppBundle/Model/ModelSearch.php +++ b/src/AppBundle/Model/ModelSearch.php @@ -12,6 +12,15 @@ class ModelSearch /** @var Category */ protected $category; + /** + * ModelSearch constructor. + * @param string $query + */ + public function __construct($query = '') + { + $this->query = $query; + } + /** * @return string */ diff --git a/src/AppBundle/Model/SetSearch.php b/src/AppBundle/Model/SetSearch.php index 2391471..ff46644 100644 --- a/src/AppBundle/Model/SetSearch.php +++ b/src/AppBundle/Model/SetSearch.php @@ -18,6 +18,15 @@ class SetSearch /** @var Theme */ protected $theme; + /** + * SetSearch constructor. + * @param string $query + */ + public function __construct($query = '') + { + $this->query = $query; + } + /** * @return string */