use Shopware\Core\Framework\DataAbstractionLayer\EntityCollection;
use Shopware\Core\Framework\Log\Package;
/**
* @extends EntityCollection<TaxRuleTypeEntity>
*/
#[Package('checkout')]
class TaxRuleTypeCollection extends EntityCollection
{ public function getByTechnicalName(string
$technicalName): ?TaxRuleTypeEntity
{ foreach ($this->
getIterator() as $ruleTypeEntity) { if ($ruleTypeEntity->
getTechnicalName() ===
$technicalName) { return $ruleTypeEntity;
} } return null;
} public function getApiAlias(): string
{ return 'tax_rule_type_collection';
}