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

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\SalesChannel\CrossSelling\CrossSellingElementCollection;
  5. use Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity;
  6. use Shopware\Core\Content\Property\Aggregate\PropertyGroupOption\PropertyGroupOptionCollection;
  7. use Shopware\Core\Content\Property\PropertyGroupCollection;
  8. use Shopware\Storefront\Page\Page;
  9. use Shopware\Storefront\Page\Product\Review\ReviewLoaderResult;
  10. class ProductPage extends Page
  11. {
  12.     /**
  13.      * @var SalesChannelProductEntity
  14.      */
  15.     protected $product;
  16.     /**
  17.      * @var CmsPageEntity
  18.      */
  19.     protected $cmsPage;
  20.     /**
  21.      * @var PropertyGroupCollection
  22.      */
  23.     protected $configuratorSettings;
  24.     /**
  25.      * @var ReviewLoaderResult
  26.      */
  27.     protected $reviewLoaderResult;
  28.     /**
  29.      * @var PropertyGroupOptionCollection
  30.      */
  31.     protected $selectedOptions;
  32.     /**
  33.      * @var CrossSellingElementCollection
  34.      */
  35.     protected $crossSellings;
  36.     public function getProduct(): SalesChannelProductEntity
  37.     {
  38.         return $this->product;
  39.     }
  40.     public function setProduct(SalesChannelProductEntity $product): void
  41.     {
  42.         $this->product $product;
  43.     }
  44.     public function getCmsPage(): ?CmsPageEntity
  45.     {
  46.         return $this->cmsPage;
  47.     }
  48.     public function setCmsPage(CmsPageEntity $cmsPage): void
  49.     {
  50.         $this->cmsPage $cmsPage;
  51.     }
  52.     public function getConfiguratorSettings(): PropertyGroupCollection
  53.     {
  54.         return $this->configuratorSettings;
  55.     }
  56.     public function setConfiguratorSettings(PropertyGroupCollection $configuratorSettings): void
  57.     {
  58.         $this->configuratorSettings $configuratorSettings;
  59.     }
  60.     public function getReviews(): ReviewLoaderResult
  61.     {
  62.         return $this->reviewLoaderResult;
  63.     }
  64.     public function setReviews(ReviewLoaderResult $result): void
  65.     {
  66.         $this->reviewLoaderResult $result;
  67.     }
  68.     public function getSelectedOptions(): PropertyGroupOptionCollection
  69.     {
  70.         return $this->selectedOptions;
  71.     }
  72.     public function setSelectedOptions(PropertyGroupOptionCollection $selectedOptions): void
  73.     {
  74.         $this->selectedOptions $selectedOptions;
  75.     }
  76.     public function getCrossSellings(): CrossSellingElementCollection
  77.     {
  78.         return $this->crossSellings;
  79.     }
  80.     public function setCrossSellings(CrossSellingElementCollection $crossSellings): void
  81.     {
  82.         $this->crossSellings $crossSellings;
  83.     }
  84. }