PHP Interface CommerceGuys\Zone\Model\ZoneInterface

Afficher le fichier Open project: commerceguys/zone Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

getId() public méthode

Gets the zone id.
public getId ( ) : string
Résultat string The zone id.

getMembers() public méthode

Gets the zone members.
public getMembers ( ) : CommerceGuys\Zone\Model\ZoneMemberInterface[]
Résultat CommerceGuys\Zone\Model\ZoneMemberInterface[] The zone members.

getName() public méthode

Gets the zone name.
public getName ( ) : string
Résultat string The zone name.

getPriority() public méthode

Zones with higher priority will be matched first.
public getPriority ( ) : integer
Résultat integer The zone priority.

getScope() public méthode

Gets the zone scope.
public getScope ( ) : string
Résultat string The zone scope.

hasMembers() public méthode

Checks whether the zone has zone members.
public hasMembers ( ) : boolean
Résultat boolean True if the zone has zone members, false otherwise.

match() public méthode

Checks whether the provided address belongs to the zone.
public match ( CommerceGuys\Addressing\AddressInterface $address ) : boolean
$address CommerceGuys\Addressing\AddressInterface The address.
Résultat boolean True if the provided address belongs to the zone, false otherwise.