vendor/shopware/core/System/Tax/TaxCollection.php line 16

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