PHP Класс CommerceGuys\Tax\Resolver\TaxType\EuTaxTypeResolver

Наследование: implements CommerceGuys\Tax\Resolver\TaxType\TaxTypeResolverInterface, use trait StoreRegistrationCheckerTrait
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$taxTypeRepository The tax type repository.

Открытые методы

Метод Описание
__construct ( CommerceGuys\Tax\Repository\TaxTypeRepositoryInterface $taxTypeRepository ) Creates a EuTaxTypeResolver instance.
resolve ( CommerceGuys\Tax\TaxableInterface $taxable, Context $context )

Защищенные методы

Метод Описание
filterByAddress ( array $taxTypes, CommerceGuys\Addressing\AddressInterface $address ) : CommerceGuys\Tax\Model\TaxTypeInterface[] Filters out tax types not matching the provided address.
getTaxTypes ( ) : CommerceGuys\Tax\Model\TaxTypeInterface[] Returns the EU tax types.

Описание методов

__construct() публичный Метод

Creates a EuTaxTypeResolver instance.
public __construct ( CommerceGuys\Tax\Repository\TaxTypeRepositoryInterface $taxTypeRepository )
$taxTypeRepository CommerceGuys\Tax\Repository\TaxTypeRepositoryInterface The tax type repository.

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

Filters out tax types not matching the provided address.
protected filterByAddress ( array $taxTypes, CommerceGuys\Addressing\AddressInterface $address ) : CommerceGuys\Tax\Model\TaxTypeInterface[]
$taxTypes array The tax types to filter.
$address CommerceGuys\Addressing\AddressInterface The address to filter by.
Результат CommerceGuys\Tax\Model\TaxTypeInterface[] An array of tax types whose zones match the provided address.

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

Returns the EU tax types.
protected getTaxTypes ( ) : CommerceGuys\Tax\Model\TaxTypeInterface[]
Результат CommerceGuys\Tax\Model\TaxTypeInterface[] An array of EU tax types.

resolve() публичный Метод

public resolve ( CommerceGuys\Tax\TaxableInterface $taxable, Context $context )
$taxable CommerceGuys\Tax\TaxableInterface
$context CommerceGuys\Tax\Resolver\Context

Описание свойств

$taxTypeRepository защищенное свойство

The tax type repository.
protected $taxTypeRepository