PHP Class CommerceGuys\Zone\Matcher\ZoneMatcher

Inheritance: implements CommerceGuys\Zone\Matcher\ZoneMatcherInterface
Show file Open project: commerceguys/zone Class Usage Examples

Protected Properties

Property Type Description
$repository CommerceGuys\Zone\Repository\ZoneRepositoryInterface Zone repository.

Public Methods

Method Description
__construct ( CommerceGuys\Zone\Repository\ZoneRepositoryInterface $repository ) Creates a ZoneMatcher instance.
match ( CommerceGuys\Addressing\AddressInterface $address, $scope = null )
matchAll ( CommerceGuys\Addressing\AddressInterface $address, $scope = null )

Method Details

__construct() public method

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

match() public method

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

matchAll() public method

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

Property Details

$repository protected property

Zone repository.
protected ZoneRepositoryInterface,CommerceGuys\Zone\Repository $repository
return CommerceGuys\Zone\Repository\ZoneRepositoryInterface