\AdamRocska\ShippingTier\EntityShippingMethodBranch

Represents a branch of a shipping method.

A shipping method branch is a cluster of countries supported by a given shipping method, grouped by transit time, and tier.

Summary

Methods
Constants
getDoorToDoorTransitTime()
getTier()
getCountries()
hasCountry()
getShippingMethod()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getCountries()

getCountries() : array<mixed,\AdamRocska\ShippingTier\Entity\Country>

Returns the list of countries handled by the current shipping method branch.

Returns

array<mixed,\AdamRocska\ShippingTier\Entity\Country>

hasCountry()

hasCountry(\AdamRocska\ShippingTier\Entity\Country  $country) : boolean

Tells whether the queried country is handled by the current shipping method branch.

Comparison is done based on the encapsulated countries' and the provided country's ISO codes.

Parameters

\AdamRocska\ShippingTier\Entity\Country $country

Returns

boolean