\AdamRocska\ShippingTier\EntityTier

Represents a set of shipping method branches sorted in the same tier / category.

Summary

Methods
Constants
getLabel()
getIdentifier()
getFastestShippingMethodBranchForCountry()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getLabel()

getLabel() : string

Returns the tier's human readable label.

Returns

string

getIdentifier()

getIdentifier() : string

Returns the tier's machine readable identifier.

Returns

string

getFastestShippingMethodBranchForCountry()

getFastestShippingMethodBranchForCountry(\AdamRocska\ShippingTier\Entity\Country  $country) : \AdamRocska\ShippingTier\Entity\ShippingMethodBranch

Returns the shipping method branch for the given country which is of the fastest possible door-to-door transit time.

Parameters

\AdamRocska\ShippingTier\Entity\Country $country

Throws

\AdamRocska\ShippingTier\Entity\Tier\Exception\NoShippingMethodBranchForCountry

Throws a NoShippingMethodBranchForCountry exception when there is no shipping method branch found for the provided country.

\AdamRocska\ShippingTier\Entity\Tier\Exception\NoShippingMethodBranchesBound

Throws a NoShippingMethodBranchesBound exception when there are no shipping method branches bound to the tier at all.

Returns

\AdamRocska\ShippingTier\Entity\ShippingMethodBranch