custom/plugins/NetzpBlog6/src/Core/Content/Blog/BlogCollection.php line 16

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