PHP Интерфейс CommerceGuys\Zone\Model\ZoneInterface

Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
getId ( ) : string Gets the zone id.
getMembers ( ) : CommerceGuys\Zone\Model\ZoneMemberInterface[] Gets the zone members.
getName ( ) : string Gets the zone name.
getPriority ( ) : integer Gets the zone priority.
getScope ( ) : string Gets the zone scope.
hasMembers ( ) : boolean Checks whether the zone has zone members.
match ( CommerceGuys\Addressing\AddressInterface $address ) : boolean Checks whether the provided address belongs to the zone.

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

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

Gets the zone id.
public getId ( ) : string
Результат string The zone id.

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

Gets the zone members.
public getMembers ( ) : CommerceGuys\Zone\Model\ZoneMemberInterface[]
Результат CommerceGuys\Zone\Model\ZoneMemberInterface[] The zone members.

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

Gets the zone name.
public getName ( ) : string
Результат string The zone name.

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

Zones with higher priority will be matched first.
public getPriority ( ) : integer
Результат integer The zone priority.

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

Gets the zone scope.
public getScope ( ) : string
Результат string The zone scope.

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

Checks whether the zone has zone members.
public hasMembers ( ) : boolean
Результат boolean True if the zone has zone members, false otherwise.

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

Checks whether the provided address belongs to the zone.
public match ( CommerceGuys\Addressing\AddressInterface $address ) : boolean
$address CommerceGuys\Addressing\AddressInterface The address.
Результат boolean True if the provided address belongs to the zone, false otherwise.