vendor/shopware/core/Content/Product/Aggregate/ProductSearchConfig/ProductSearchConfigEntity.php line 10

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Product\Aggregate\ProductSearchConfig;
  3. use Shopware\Core\Content\Product\Aggregate\ProductSearchConfigField\ProductSearchConfigFieldCollection;
  4. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  5. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  6. use Shopware\Core\System\Language\LanguageEntity;
  7. class ProductSearchConfigEntity extends Entity
  8. {
  9.     use EntityIdTrait;
  10.     /**
  11.      * @var string
  12.      */
  13.     protected $languageId;
  14.     /**
  15.      * @var bool
  16.      */
  17.     protected $andLogic;
  18.     /**
  19.      * @var int
  20.      */
  21.     protected $minSearchLength;
  22.     /**
  23.      * @var array|null
  24.      */
  25.     protected $excludedTerms;
  26.     /**
  27.      * @var LanguageEntity|null
  28.      */
  29.     protected $language;
  30.     /**
  31.      * @var ProductSearchConfigFieldCollection|null
  32.      */
  33.     protected $configFields;
  34.     public function getLanguageId(): string
  35.     {
  36.         return $this->languageId;
  37.     }
  38.     public function setLanguageId(string $languageId): void
  39.     {
  40.         $this->languageId $languageId;
  41.     }
  42.     public function getAndLogic(): bool
  43.     {
  44.         return $this->andLogic;
  45.     }
  46.     public function setAndLogic(bool $andLogic): void
  47.     {
  48.         $this->andLogic $andLogic;
  49.     }
  50.     public function getMinSearchLength(): int
  51.     {
  52.         return $this->minSearchLength;
  53.     }
  54.     public function setMinSearchLength(int $minSearchLength): void
  55.     {
  56.         $this->minSearchLength $minSearchLength;
  57.     }
  58.     public function getExcludedTerms(): ?array
  59.     {
  60.         return $this->excludedTerms;
  61.     }
  62.     public function setExcludedTerms(?array $excludedTerms): void
  63.     {
  64.         $this->excludedTerms $excludedTerms;
  65.     }
  66.     public function getLanguage(): ?LanguageEntity
  67.     {
  68.         return $this->language;
  69.     }
  70.     public function setLanguage(LanguageEntity $language): void
  71.     {
  72.         $this->language $language;
  73.     }
  74.     public function getConfigFields(): ?ProductSearchConfigFieldCollection
  75.     {
  76.         return $this->configFields;
  77.     }
  78.     public function setConfigFields(ProductSearchConfigFieldCollection $configFields): void
  79.     {
  80.         $this->configFields $configFields;
  81.     }
  82.     public function getApiAlias(): string
  83.     {
  84.         return 'product_search_config';
  85.     }
  86. }