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

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file has been created by developers from BitBag.
  4.  * Feel free to contact us once you face any issues or want to start
  5.  * another great project.
  6.  * You can find more information about us on https://bitbag.io and write us
  7.  * an email on hello@bitbag.io.
  8.  */
  9. declare(strict_types=1);
  10. namespace BitBag\SyliusElasticsearchPlugin\Model;
  11. class Search
  12. {
  13.     private ?SearchBox $box;
  14.     private ?SearchFacets $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. }