vendor/shopware/core/System/Currency/CurrencyCollection.php line 16

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