vendor/shopware/storefront/Page/Product/CrossSelling/CrossSellingLoaderResult.php line 18

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Storefront\Page\Product\CrossSelling;
  3. use Shopware\Core\Content\Product\SalesChannel\CrossSelling\CrossSellingElementCollection;
  4. /**
  5.  * @deprecated tag:v6.4.0 - Use `Shopware\Core\Content\Product\SalesChannel\CrossSelling\CrossSellingElementCollection` instead
  6.  *
  7.  * @method void                     add(CrossSellingElement $entity)
  8.  * @method void                     set(string $key, CrossSellingElement $entity)
  9.  * @method CrossSellingElement[]    getIterator()
  10.  * @method CrossSellingElement[]    getElements()
  11.  * @method CrossSellingElement|null get(string $key)
  12.  * @method CrossSellingElement|null first()
  13.  * @method CrossSellingElement|null last()
  14.  */
  15. class CrossSellingLoaderResult extends CrossSellingElementCollection
  16. {
  17.     public function getExpectedClass(): ?string
  18.     {
  19.         return CrossSellingElement::class;
  20.     }
  21.     public function getApiAlias(): string
  22.     {
  23.         return 'storefront_' parent::getApiAlias();
  24.     }
  25. }