CommerceGuys\Tax\Resolver\TaxType\EuTaxTypeResolver::getTaxTypes PHP Метод

getTaxTypes() защищенный Метод

Returns the EU tax types.
protected getTaxTypes ( ) : CommerceGuys\Tax\Model\TaxTypeInterface[]
Результат CommerceGuys\Tax\Model\TaxTypeInterface[] An array of EU tax types.
    protected function getTaxTypes()
    {
        $taxTypes = $this->taxTypeRepository->getAll();
        $taxTypes = array_filter($taxTypes, function ($taxType) {
            // "eu_ic_vat" is not resolved via its zone, so it isn't needed.
            return $taxType->getId() != 'eu_ic_vat' && $taxType->getTag() == 'EU';
        });
        return $taxTypes;
    }