custom/plugins/SasBlogModule/src/Content/BlogCategory/BlogCategoryCollection.php line 15

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