vendor/shopware/core/Content/Seo/MainCategory/MainCategoryEntity.php line 13

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Seo\MainCategory;
  3. use Shopware\Core\Content\Category\CategoryEntity;
  4. use Shopware\Core\Content\Product\ProductEntity;
  5. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  6. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  7. use Shopware\Core\Framework\Log\Package;
  8. use Shopware\Core\System\SalesChannel\SalesChannelEntity;
  9. #[Package('sales-channel')]
  10. class MainCategoryEntity extends Entity
  11. {
  12.     use EntityIdTrait;
  13.     /**
  14.      * @var string
  15.      */
  16.     protected $salesChannelId;
  17.     /**
  18.      * @var SalesChannelEntity|null
  19.      */
  20.     protected $salesChannel;
  21.     /**
  22.      * @var string
  23.      */
  24.     protected $categoryId;
  25.     /**
  26.      * @var CategoryEntity
  27.      */
  28.     protected $category;
  29.     /**
  30.      * @var string
  31.      */
  32.     protected $productId;
  33.     /**
  34.      * @var ProductEntity|null
  35.      */
  36.     protected $product;
  37.     public function getSalesChannelId(): string
  38.     {
  39.         return $this->salesChannelId;
  40.     }
  41.     public function setSalesChannelId(string $salesChannelId): void
  42.     {
  43.         $this->salesChannelId $salesChannelId;
  44.     }
  45.     public function getSalesChannel(): ?SalesChannelEntity
  46.     {
  47.         return $this->salesChannel;
  48.     }
  49.     public function setSalesChannel(?SalesChannelEntity $salesChannel): void
  50.     {
  51.         $this->salesChannel $salesChannel;
  52.     }
  53.     public function getCategoryId(): string
  54.     {
  55.         return $this->categoryId;
  56.     }
  57.     public function setCategoryId(string $categoryId): void
  58.     {
  59.         $this->categoryId $categoryId;
  60.     }
  61.     public function getCategory(): CategoryEntity
  62.     {
  63.         return $this->category;
  64.     }
  65.     public function setCategory(CategoryEntity $category): void
  66.     {
  67.         $this->category $category;
  68.     }
  69.     public function getProductId(): string
  70.     {
  71.         return $this->productId;
  72.     }
  73.     public function setProductId(string $productId): void
  74.     {
  75.         $this->productId $productId;
  76.     }
  77.     public function getProduct(): ?ProductEntity
  78.     {
  79.         return $this->product;
  80.     }
  81.     public function setProduct(?ProductEntity $product): void
  82.     {
  83.         $this->product $product;
  84.     }
  85. }