PHP 클래스 CommerceGuys\Zone\Matcher\ZoneMatcher

상속: implements CommerceGuys\Zone\Matcher\ZoneMatcherInterface
파일 보기 프로젝트 열기: commerceguys/zone 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$repository CommerceGuys\Zone\Repository\ZoneRepositoryInterface Zone repository.

공개 메소드들

메소드 설명
__construct ( CommerceGuys\Zone\Repository\ZoneRepositoryInterface $repository ) Creates a ZoneMatcher instance.
match ( CommerceGuys\Addressing\AddressInterface $address, $scope = null )
matchAll ( CommerceGuys\Addressing\AddressInterface $address, $scope = null )

메소드 상세

__construct() 공개 메소드

Creates a ZoneMatcher instance.
public __construct ( CommerceGuys\Zone\Repository\ZoneRepositoryInterface $repository )
$repository CommerceGuys\Zone\Repository\ZoneRepositoryInterface

match() 공개 메소드

public match ( CommerceGuys\Addressing\AddressInterface $address, $scope = null )
$address CommerceGuys\Addressing\AddressInterface

matchAll() 공개 메소드

public matchAll ( CommerceGuys\Addressing\AddressInterface $address, $scope = null )
$address CommerceGuys\Addressing\AddressInterface

프로퍼티 상세

$repository 보호되어 있는 프로퍼티

Zone repository.
protected ZoneRepositoryInterface,CommerceGuys\Zone\Repository $repository
리턴 CommerceGuys\Zone\Repository\ZoneRepositoryInterface