vendor/shopware/core/Content/Cms/SalesChannel/Struct/ProductListingStruct.php line 8

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Cms\SalesChannel\Struct;
  3. use Shopware\Core\Framework\DataAbstractionLayer\Search\EntitySearchResult;
  4. use Shopware\Core\Framework\Struct\Struct;
  5. class ProductListingStruct extends Struct
  6. {
  7.     /**
  8.      * @var EntitySearchResult|null
  9.      */
  10.     protected $listing;
  11.     public function getListing(): ?EntitySearchResult
  12.     {
  13.         return $this->listing;
  14.     }
  15.     public function setListing(EntitySearchResult $listing): void
  16.     {
  17.         $this->listing $listing;
  18.     }
  19.     public function getApiAlias(): string
  20.     {
  21.         return 'cms_product_listing';
  22.     }
  23. }