PHP Interface CommerceGuys\Zone\Matcher\ZoneMatcherInterface

Datei anzeigen Open project: commerceguys/zone

Public Methods

Method Description
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.

Method Details

match() public method

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
return CommerceGuys\Zone\Model\ZoneInterface | null

matchAll() public method

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
return CommerceGuys\Zone\Model\ZoneInterface[]