vendor/store.shopware.com/ndsrecipemanager/src/Core/Content/Related/RelatedCollection.php line 16

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