vendor/bitbag/elasticsearch-plugin/src/Model/Search.php line 13

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file was created by developers working at BitBag
  4.  * Do you need more information about us and what we do? Visit our https://bitbag.io website!
  5.  * We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
  6. */
  7. declare(strict_types=1);
  8. namespace BitBag\SyliusElasticsearchPlugin\Model;
  9. class Search
  10. {
  11.     /** @var SearchBox|null */
  12.     private $box;
  13.     /** @var SearchFacets|null */
  14.     private $facets;
  15.     public function __construct()
  16.     {
  17.         $this->box = new SearchBox();
  18.         $this->facets = new SearchFacets();
  19.     }
  20.     public function getBox(): ?SearchBox
  21.     {
  22.         return $this->box;
  23.     }
  24.     public function setBox(?SearchBox $box): void
  25.     {
  26.         $this->box $box;
  27.     }
  28.     public function getFacets(): ?SearchFacets
  29.     {
  30.         return $this->facets;
  31.     }
  32.     public function setFacets(?SearchFacets $facets): void
  33.     {
  34.         $this->facets $facets;
  35.     }
  36. }