PHP Трейт CommerceGuys\Tax\Resolver\TaxType\StoreRegistrationCheckerTrait

Показать файл Открыть проект

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

Свойство Тип Описание
$emptyAddresses CommerceGuys\Addressing\Address[] The empty addresses constructed for checking store registrations.

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

Метод Описание
checkStoreRegistration ( CommerceGuys\Zone\Model\ZoneInterface $zone, Context $context ) : boolean Checks whether the store is registered to collect taxes in the given zone.
filterByStoreRegistration ( array $taxTypes, Context $context ) : CommerceGuys\Tax\Model\TaxTypeInterface[] Filters out tax types not matching the store registration.

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

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

Checks whether the store is registered to collect taxes in the given zone.
protected checkStoreRegistration ( CommerceGuys\Zone\Model\ZoneInterface $zone, Context $context ) : boolean
$zone CommerceGuys\Zone\Model\ZoneInterface The zone.
$context CommerceGuys\Tax\Resolver\Context The context containing store information.
Результат boolean True if the store is registered to collect taxes in the given zone, false otherwise.

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

Filters out tax types not matching the store registration.
protected filterByStoreRegistration ( array $taxTypes, Context $context ) : CommerceGuys\Tax\Model\TaxTypeInterface[]
$taxTypes array The tax types to filter.
$context CommerceGuys\Tax\Resolver\Context The context containing store information.
Результат CommerceGuys\Tax\Model\TaxTypeInterface[] An array of additional tax types the store is registered to collect.

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

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

The empty addresses constructed for checking store registrations.
protected Address[],CommerceGuys\Addressing $emptyAddresses
Результат CommerceGuys\Addressing\Address[]