vendor/shopware/core/System/SalesChannel/Aggregate/SalesChannelDomain/SalesChannelDomainEntity.php line 16

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\System\SalesChannel\Aggregate\SalesChannelDomain;
  3. use Shopware\Core\Content\ProductExport\ProductExportCollection;
  4. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  5. use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
  6. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  7. use Shopware\Core\Framework\Log\Package;
  8. use Shopware\Core\System\Currency\CurrencyEntity;
  9. use Shopware\Core\System\Language\LanguageEntity;
  10. use Shopware\Core\System\SalesChannel\SalesChannelEntity;
  11. use Shopware\Core\System\Snippet\Aggregate\SnippetSet\SnippetSetEntity;
  12. #[Package('sales-channel')]
  13. class SalesChannelDomainEntity extends Entity
  14. {
  15.     use EntityIdTrait;
  16.     use EntityCustomFieldsTrait;
  17.     /**
  18.      * @var string
  19.      */
  20.     protected $url;
  21.     /**
  22.      * @var string|null
  23.      */
  24.     protected $currencyId;
  25.     /**
  26.      * @var CurrencyEntity|null
  27.      */
  28.     protected $currency;
  29.     /**
  30.      * @var string|null
  31.      */
  32.     protected $snippetSetId;
  33.     /**
  34.      * @var SnippetSetEntity|null
  35.      */
  36.     protected $snippetSet;
  37.     /**
  38.      * @var string
  39.      */
  40.     protected $salesChannelId;
  41.     /**
  42.      * @var SalesChannelEntity|null
  43.      */
  44.     protected $salesChannel;
  45.     /**
  46.      * @var string
  47.      */
  48.     protected $languageId;
  49.     /**
  50.      * @var LanguageEntity|null
  51.      */
  52.     protected $language;
  53.     /**
  54.      * @var ProductExportCollection|null
  55.      */
  56.     protected $productExports;
  57.     /**
  58.      * @var SalesChannelEntity|null
  59.      */
  60.     protected $salesChannelDefaultHreflang;
  61.     /**
  62.      * @var bool
  63.      */
  64.     protected $hreflangUseOnlyLocale;
  65.     public function getUrl(): string
  66.     {
  67.         return $this->url;
  68.     }
  69.     public function setUrl(string $url): void
  70.     {
  71.         $this->url $url;
  72.     }
  73.     public function getSalesChannelId(): string
  74.     {
  75.         return $this->salesChannelId;
  76.     }
  77.     public function setSalesChannelId(string $salesChannelId): void
  78.     {
  79.         $this->salesChannelId $salesChannelId;
  80.     }
  81.     public function getLanguageId(): string
  82.     {
  83.         return $this->languageId;
  84.     }
  85.     public function setLanguageId(string $languageId): void
  86.     {
  87.         $this->languageId $languageId;
  88.     }
  89.     public function getSalesChannel(): ?SalesChannelEntity
  90.     {
  91.         return $this->salesChannel;
  92.     }
  93.     public function setSalesChannel(SalesChannelEntity $salesChannel): void
  94.     {
  95.         $this->salesChannel $salesChannel;
  96.     }
  97.     public function getLanguage(): ?LanguageEntity
  98.     {
  99.         return $this->language;
  100.     }
  101.     public function setLanguage(LanguageEntity $language): void
  102.     {
  103.         $this->language $language;
  104.     }
  105.     public function getCurrencyId(): ?string
  106.     {
  107.         return $this->currencyId;
  108.     }
  109.     public function setCurrencyId(?string $currencyId): void
  110.     {
  111.         $this->currencyId $currencyId;
  112.     }
  113.     public function getCurrency(): ?CurrencyEntity
  114.     {
  115.         return $this->currency;
  116.     }
  117.     public function setCurrency(?CurrencyEntity $currency): void
  118.     {
  119.         $this->currency $currency;
  120.     }
  121.     public function getSnippetSetId(): ?string
  122.     {
  123.         return $this->snippetSetId;
  124.     }
  125.     public function setSnippetSetId(?string $snippetSetId): void
  126.     {
  127.         $this->snippetSetId $snippetSetId;
  128.     }
  129.     public function getSnippetSet(): ?SnippetSetEntity
  130.     {
  131.         return $this->snippetSet;
  132.     }
  133.     public function setSnippetSet(?SnippetSetEntity $snippetSet): void
  134.     {
  135.         $this->snippetSet $snippetSet;
  136.     }
  137.     public function getProductExports(): ?ProductExportCollection
  138.     {
  139.         return $this->productExports;
  140.     }
  141.     public function setProductExports(ProductExportCollection $productExports): void
  142.     {
  143.         $this->productExports $productExports;
  144.     }
  145.     public function isHreflangUseOnlyLocale(): bool
  146.     {
  147.         return $this->hreflangUseOnlyLocale;
  148.     }
  149.     public function setHreflangUseOnlyLocale(bool $hreflangUseOnlyLocale): void
  150.     {
  151.         $this->hreflangUseOnlyLocale $hreflangUseOnlyLocale;
  152.     }
  153.     public function getSalesChannelDefaultHreflang(): ?SalesChannelEntity
  154.     {
  155.         return $this->salesChannelDefaultHreflang;
  156.     }
  157.     public function setSalesChannelDefaultHreflang(?SalesChannelEntity $salesChannelDefaultHreflang): void
  158.     {
  159.         $this->salesChannelDefaultHreflang $salesChannelDefaultHreflang;
  160.     }
  161. }