vendor/shopware/storefront/Page/Product/Review/ReviewLoaderResult.php line 8

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Storefront\Page\Product\Review;
  3. use Shopware\Core\Content\Product\Aggregate\ProductReview\ProductReviewEntity;
  4. use Shopware\Storefront\Framework\Page\StorefrontSearchResult;
  5. class ReviewLoaderResult extends StorefrontSearchResult
  6. {
  7.     /**
  8.      * @var string|null
  9.      */
  10.     protected $parentId;
  11.     /**
  12.      * @var string
  13.      */
  14.     protected $productId;
  15.     /**
  16.      * @var StorefrontSearchResult
  17.      */
  18.     protected $reviews;
  19.     /**
  20.      * @var RatingMatrix
  21.      */
  22.     protected $matrix;
  23.     /**
  24.      * @var ProductReviewEntity|null
  25.      */
  26.     protected $customerReview;
  27.     /**
  28.      * @var int
  29.      */
  30.     protected $totalReviews;
  31.     public function getProductId(): string
  32.     {
  33.         return $this->productId;
  34.     }
  35.     public function setProductId(string $productId): void
  36.     {
  37.         $this->productId $productId;
  38.     }
  39.     public function getReviews(): StorefrontSearchResult
  40.     {
  41.         return $this->reviews;
  42.     }
  43.     public function getMatrix(): RatingMatrix
  44.     {
  45.         return $this->matrix;
  46.     }
  47.     public function setMatrix(RatingMatrix $matrix): void
  48.     {
  49.         $this->matrix $matrix;
  50.     }
  51.     public function getCustomerReview(): ?ProductReviewEntity
  52.     {
  53.         return $this->customerReview;
  54.     }
  55.     public function setCustomerReview(?ProductReviewEntity $customerReview): void
  56.     {
  57.         $this->customerReview $customerReview;
  58.     }
  59.     public function getTotalReviews(): int
  60.     {
  61.         return $this->totalReviews;
  62.     }
  63.     public function setTotalReviews(int $totalReviews): void
  64.     {
  65.         $this->totalReviews $totalReviews;
  66.     }
  67.     public function getParentId(): ?string
  68.     {
  69.         return $this->parentId;
  70.     }
  71.     public function setParentId(?string $parentId): void
  72.     {
  73.         $this->parentId $parentId;
  74.     }
  75. }