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

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\EntityIdTrait;
  6. use Shopware\Core\System\Currency\CurrencyEntity;
  7. use Shopware\Core\System\Language\LanguageEntity;
  8. use Shopware\Core\System\SalesChannel\SalesChannelEntity;
  9. use Shopware\Core\System\Snippet\Aggregate\SnippetSet\SnippetSetEntity;
  10. class SalesChannelDomainEntity extends Entity
  11. {
  12.     use EntityIdTrait;
  13.     /**
  14.      * @var string
  15.      */
  16.     protected $url;
  17.     /**
  18.      * @var string|null
  19.      */
  20.     protected $currencyId;
  21.     /**
  22.      * @var CurrencyEntity|null
  23.      */
  24.     protected $currency;
  25.     /**
  26.      * @var string|null
  27.      */
  28.     protected $snippetSetId;
  29.     /**
  30.      * @var SnippetSetEntity|null
  31.      */
  32.     protected $snippetSet;
  33.     /**
  34.      * @var string
  35.      */
  36.     protected $salesChannelId;
  37.     /**
  38.      * @var SalesChannelEntity|null
  39.      */
  40.     protected $salesChannel;
  41.     /**
  42.      * @var string
  43.      */
  44.     protected $languageId;
  45.     /**
  46.      * @var LanguageEntity|null
  47.      */
  48.     protected $language;
  49.     /**
  50.      * @var array|null
  51.      */
  52.     protected $customFields;
  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 getCustomFields(): ?array
  138.     {
  139.         return $this->customFields;
  140.     }
  141.     public function setCustomFields(?array $customFields): void
  142.     {
  143.         $this->customFields $customFields;
  144.     }
  145.     public function getProductExports(): ?ProductExportCollection
  146.     {
  147.         return $this->productExports;
  148.     }
  149.     public function setProductExports(ProductExportCollection $productExports): void
  150.     {
  151.         $this->productExports $productExports;
  152.     }
  153.     public function isHreflangUseOnlyLocale(): bool
  154.     {
  155.         return $this->hreflangUseOnlyLocale;
  156.     }
  157.     public function setHreflangUseOnlyLocale(bool $hreflangUseOnlyLocale): void
  158.     {
  159.         $this->hreflangUseOnlyLocale $hreflangUseOnlyLocale;
  160.     }
  161.     public function getSalesChannelDefaultHreflang(): ?SalesChannelEntity
  162.     {
  163.         return $this->salesChannelDefaultHreflang;
  164.     }
  165.     public function setSalesChannelDefaultHreflang(?SalesChannelEntity $salesChannelDefaultHreflang): void
  166.     {
  167.         $this->salesChannelDefaultHreflang $salesChannelDefaultHreflang;
  168.     }
  169.     public function getApiAlias(): string
  170.     {
  171.         return 'sales_channel_domain';
  172.     }
  173. }