PHP 인터페이스 CommerceGuys\Zone\Matcher\ZoneMatcherInterface

파일 보기 프로젝트 열기: commerceguys/zone

공개 메소드들

메소드 설명
match ( CommerceGuys\Addressing\AddressInterface $address, string | null $scope = null ) : CommerceGuys\Zone\Model\ZoneInterface | null Returns the best matching zone for the provided address.
matchAll ( CommerceGuys\Addressing\AddressInterface $address, string | null $scope = null ) : CommerceGuys\Zone\Model\ZoneInterface[] Returns all matching zones for the provided address.

메소드 상세

match() 공개 메소드

Returns the best matching zone for the provided address.
public match ( CommerceGuys\Addressing\AddressInterface $address, string | null $scope = null ) : CommerceGuys\Zone\Model\ZoneInterface | null
$address CommerceGuys\Addressing\AddressInterface
$scope string | null
리턴 CommerceGuys\Zone\Model\ZoneInterface | null

matchAll() 공개 메소드

Returns all matching zones for the provided address.
public matchAll ( CommerceGuys\Addressing\AddressInterface $address, string | null $scope = null ) : CommerceGuys\Zone\Model\ZoneInterface[]
$address CommerceGuys\Addressing\AddressInterface
$scope string | null
리턴 CommerceGuys\Zone\Model\ZoneInterface[]