vendor/store.shopware.com/ndsrecipemanager/src/Core/Content/Category/CategoryCollection.php line 16

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