custom/plugins/fourtwosixattachments/src/Core/Content/Product/AttachmentCollection.php line 18

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