vendor/shopware/core/Content/Product/SalesChannel/CrossSelling/CrossSellingElement.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Product\SalesChannel\CrossSelling;
  3. use Shopware\Core\Content\Product\Aggregate\ProductCrossSelling\ProductCrossSellingEntity;
  4. use Shopware\Core\Content\Product\ProductCollection;
  5. use Shopware\Core\Framework\Struct\Struct;
  6. class CrossSellingElement extends Struct
  7. {
  8.     protected ProductCrossSellingEntity $crossSelling;
  9.     protected ProductCollection $products;
  10.     protected int $total;
  11.     protected ?string $streamId = null;
  12.     public function getCrossSelling(): ProductCrossSellingEntity
  13.     {
  14.         return $this->crossSelling;
  15.     }
  16.     public function setCrossSelling(ProductCrossSellingEntity $crossSelling): void
  17.     {
  18.         $this->crossSelling = $crossSelling;
  19.     }
  20.     public function getProducts(): ProductCollection
  21.     {
  22.         return $this->products;
  23.     }
  24.     public function setProducts(ProductCollection $products): void
  25.     {
  26.         $this->products = $products;
  27.     }
  28.     public function getTotal(): int
  29.     {
  30.         return $this->total;
  31.     }
  32.     public function setTotal(int $total): void
  33.     {
  34.         $this->total = $total;
  35.     }
  36.     public function getApiAlias(): string
  37.     {
  38.         return 'cross_selling_element';
  39.     }
  40.     public function getStreamId(): ?string
  41.     {
  42.         return $this->streamId;
  43.     }
  44.     public function setStreamId(?string $streamId): void
  45.     {
  46.         $this->streamId = $streamId;
  47.     }
  48. }