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

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\Log\Package;
  6. use Shopware\Core\Framework\Struct\Struct;
  7. #[Package('inventory')]
  8. class CrossSellingElement extends Struct
  9. {
  10.     protected ProductCrossSellingEntity $crossSelling;
  11.     protected ProductCollection $products;
  12.     protected int $total;
  13.     protected ?string $streamId null;
  14.     public function getCrossSelling(): ProductCrossSellingEntity
  15.     {
  16.         return $this->crossSelling;
  17.     }
  18.     public function setCrossSelling(ProductCrossSellingEntity $crossSelling): void
  19.     {
  20.         $this->crossSelling $crossSelling;
  21.     }
  22.     public function getProducts(): ProductCollection
  23.     {
  24.         return $this->products;
  25.     }
  26.     public function setProducts(ProductCollection $products): void
  27.     {
  28.         $this->products $products;
  29.     }
  30.     public function getTotal(): int
  31.     {
  32.         return $this->total;
  33.     }
  34.     public function setTotal(int $total): void
  35.     {
  36.         $this->total $total;
  37.     }
  38.     public function getApiAlias(): string
  39.     {
  40.         return 'cross_selling_element';
  41.     }
  42.     public function getStreamId(): ?string
  43.     {
  44.         return $this->streamId;
  45.     }
  46.     public function setStreamId(?string $streamId): void
  47.     {
  48.         $this->streamId $streamId;
  49.     }
  50. }