PHP 인터페이스 CommerceGuys\Zone\Model\ZoneInterface

파일 보기 프로젝트 열기: commerceguys/zone 0 사용 예제들

공개 메소드들

메소드 설명
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.