vendor/shopware/storefront/Page/Product/ProductPage.php line 14

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Storefront\Page\Product;
  3. use Shopware\Core\Content\Cms\CmsPageEntity;
  4. use Shopware\Core\Content\Product\ProductDefinition;
  5. use Shopware\Core\Content\Product\SalesChannel\CrossSelling\CrossSellingElementCollection;
  6. use Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity;
  7. use Shopware\Core\Content\Property\Aggregate\PropertyGroupOption\PropertyGroupOptionCollection;
  8. use Shopware\Core\Content\Property\PropertyGroupCollection;
  9. use Shopware\Storefront\Page\Page;
  10. use Shopware\Storefront\Page\Product\Review\ReviewLoaderResult;
  11. class ProductPage extends Page
  12. {
  13.     /**
  14.      * @var SalesChannelProductEntity
  15.      */
  16.     protected $product;
  17.     /**
  18.      * @var CmsPageEntity
  19.      */
  20.     protected $cmsPage;
  21.     protected ?string $navigationId;
  22.     /**
  23.      * @var PropertyGroupCollection
  24.      */
  25.     protected $configuratorSettings;
  26.     /**
  27.      * @var ReviewLoaderResult
  28.      */
  29.     protected $reviewLoaderResult;
  30.     /**
  31.      * @var PropertyGroupOptionCollection
  32.      */
  33.     protected $selectedOptions;
  34.     /**
  35.      * @var CrossSellingElementCollection
  36.      */
  37.     protected $crossSellings;
  38.     public function getProduct(): SalesChannelProductEntity
  39.     {
  40.         return $this->product;
  41.     }
  42.     public function setProduct(SalesChannelProductEntity $product): void
  43.     {
  44.         $this->product $product;
  45.     }
  46.     public function getCmsPage(): ?CmsPageEntity
  47.     {
  48.         return $this->cmsPage;
  49.     }
  50.     public function setCmsPage(CmsPageEntity $cmsPage): void
  51.     {
  52.         $this->cmsPage $cmsPage;
  53.     }
  54.     public function getNavigationId(): ?string
  55.     {
  56.         return $this->navigationId;
  57.     }
  58.     public function setNavigationId(?string $navigationId): void
  59.     {
  60.         $this->navigationId $navigationId;
  61.     }
  62.     public function getConfiguratorSettings(): PropertyGroupCollection
  63.     {
  64.         return $this->configuratorSettings;
  65.     }
  66.     public function setConfiguratorSettings(PropertyGroupCollection $configuratorSettings): void
  67.     {
  68.         $this->configuratorSettings $configuratorSettings;
  69.     }
  70.     public function getReviews(): ReviewLoaderResult
  71.     {
  72.         return $this->reviewLoaderResult;
  73.     }
  74.     public function setReviews(ReviewLoaderResult $result): void
  75.     {
  76.         $this->reviewLoaderResult $result;
  77.     }
  78.     public function getSelectedOptions(): PropertyGroupOptionCollection
  79.     {
  80.         return $this->selectedOptions;
  81.     }
  82.     public function setSelectedOptions(PropertyGroupOptionCollection $selectedOptions): void
  83.     {
  84.         $this->selectedOptions $selectedOptions;
  85.     }
  86.     public function getCrossSellings(): CrossSellingElementCollection
  87.     {
  88.         return $this->crossSellings;
  89.     }
  90.     public function setCrossSellings(CrossSellingElementCollection $crossSellings): void
  91.     {
  92.         $this->crossSellings $crossSellings;
  93.     }
  94.     public function getEntityName(): string
  95.     {
  96.         return ProductDefinition::ENTITY_NAME;
  97.     }
  98. }