custom/plugins/AcrisProductBadgesCS/src/Custom/ProductBadgesCollection.php line 16

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Acris\ProductBadges\Custom;
  3. use Shopware\Core\Framework\DataAbstractionLayer\EntityCollection;
  4. /**
  5.  * @method void              add(ProductBadgesEntity $entity)
  6.  * @method void              set(string $key, ProductBadgesEntity $entity)
  7.  * @method ProductBadgesEntity[]    getIterator()
  8.  * @method ProductBadgesEntity[]    getElements()
  9.  * @method ProductBadgesEntity|null get(string $key)
  10.  * @method ProductBadgesEntity|null first()
  11.  * @method ProductBadgesEntity|null last()
  12.  */
  13. class ProductBadgesCollection extends EntityCollection
  14. {
  15.     protected function getExpectedClass(): string
  16.     {
  17.         return ProductBadgesEntity::class;
  18.     }
  19. }