vendor/store.shopware.com/swagenterprisesearchplatform/src/IndexingQuery/IndexingQueryEntity.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Swag\EnterpriseSearch\IndexingQuery;
  3. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  4. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  5. use Shopware\Core\System\SalesChannel\SalesChannelEntity;
  6. use Swag\EnterpriseSearch\Boosting\BoostingCollection;
  7. use Swag\EnterpriseSearch\Relevance\RelevanceBluePrintCollection;
  8. class IndexingQueryEntity extends Entity
  9. {
  10.     use EntityIdTrait;
  11.     /**
  12.      * @var RelevanceBluePrintCollection
  13.      */
  14.     public $relevanceCollection;
  15.     /**
  16.      * @var BoostingCollection
  17.      */
  18.     public $boostingCollection;
  19.     /**
  20.      * @var array
  21.      */
  22.     public $boostingJson;
  23.     /**
  24.      * @var array
  25.      */
  26.     public $relevanceJson;
  27.     /**
  28.      * @var string
  29.      */
  30.     public $entityName;
  31.     /**
  32.      * @var string
  33.      */
  34.     public $salesChannelId;
  35.     /**
  36.      * @var SalesChannelEntity|null
  37.      */
  38.     public $salesChannel;
  39.     public function getBoostingJson(): array
  40.     {
  41.         return $this->boostingJson;
  42.     }
  43.     public function setBoostingJson(array $boostingJson): void
  44.     {
  45.         $this->boostingJson $boostingJson;
  46.     }
  47.     public function getRelevanceJson(): array
  48.     {
  49.         return $this->relevanceJson;
  50.     }
  51.     public function setRelevanceJson(array $relevanceJson): void
  52.     {
  53.         $this->relevanceJson $relevanceJson;
  54.     }
  55.     public function setBoostingCollection(BoostingCollection $boostingQuery): void
  56.     {
  57.         $this->boostingCollection $boostingQuery;
  58.     }
  59.     public function getBoostingCollection(): BoostingCollection
  60.     {
  61.         return $this->boostingCollection;
  62.     }
  63.     public function getSalesChannelId(): string
  64.     {
  65.         return $this->salesChannelId;
  66.     }
  67.     public function setSalesChannelId(string $salesChannelId): void
  68.     {
  69.         $this->salesChannelId $salesChannelId;
  70.     }
  71.     public function getSalesChannel(): ?SalesChannelEntity
  72.     {
  73.         return $this->salesChannel;
  74.     }
  75.     public function setSalesChannel(SalesChannelEntity $salesChannel): void
  76.     {
  77.         $this->salesChannel $salesChannel;
  78.     }
  79.     public function getRelevanceCollection(): RelevanceBluePrintCollection
  80.     {
  81.         return $this->relevanceCollection;
  82.     }
  83.     public function setRelevanceCollection(RelevanceBluePrintCollection $relevanceCollection): void
  84.     {
  85.         $this->relevanceCollection $relevanceCollection;
  86.     }
  87.     public function getEntityName(): string
  88.     {
  89.         return $this->entityName;
  90.     }
  91.     public function setEntityName(string $entityName): void
  92.     {
  93.         $this->entityName $entityName;
  94.     }
  95. }