$doorToDoorTransitTime
$doorToDoorTransitTime : \AdamRocska\ShippingTier\Entity\DoorToDoorTransitTime
The current shipping method branch's door to door transition time for its encapsulated countries.
Represents a branch of a shipping method.
A branch is a cluster of countries with a common door to door transit times, and belonging to a common tier.
$doorToDoorTransitTime : \AdamRocska\ShippingTier\Entity\DoorToDoorTransitTime
The current shipping method branch's door to door transition time for its encapsulated countries.
$countries : array<mixed,\AdamRocska\ShippingTier\Entity\Country>
The list of countries encapsulated by this shipping method branch.
$tier : \AdamRocska\ShippingTier\Entity\Tier
The tier to which this shipping method branch belongs to.
$shippingMethod : \AdamRocska\ShippingTier\Entity\ShippingMethod
The shipping method to which this shipping method branch belongs to.
__construct(\AdamRocska\ShippingTier\Entity\DoorToDoorTransitTime $doorToDoorTransitTime, array<mixed,\AdamRocska\ShippingTier\Entity\Country> $countries)
ShippingMethodBranch constructor.
\AdamRocska\ShippingTier\Entity\DoorToDoorTransitTime | $doorToDoorTransitTime | The
|
array<mixed,\AdamRocska\ShippingTier\Entity\Country> | $countries | The list of countries handled by the current shipping method branch. |
getDoorToDoorTransitTime() : \AdamRocska\ShippingTier\Entity\DoorToDoorTransitTime
Returns the current shipping method branch's door to door transition time for its encapsulated countries.
getTier() : \AdamRocska\ShippingTier\Entity\Tier
Returns the `Tier` to which this shipping method branch belongs to.
Tier
s are lazily injected into this instance, therefore in order to
avoid runtime type related failures, make sure to test / assert /
validate a tier's presence via hasTier
.
setTier(\AdamRocska\ShippingTier\Entity\Tier $tier)
Sets the tier to which this shipping method branch belongs to.
\AdamRocska\ShippingTier\Entity\Tier | $tier |
getCountries() : array<mixed,\AdamRocska\ShippingTier\Entity\Country>
Returns the list of countries encapsulated by this shipping method branch.
hasCountry(\AdamRocska\ShippingTier\Entity\Country $country) : boolean
Tells whether the encapsulated list of countries contains the received country. It does equality comparison based on the encapsulated ISO Code.
Comparison is done based on the encapsulated countries' and the provided country's ISO codes.
\AdamRocska\ShippingTier\Entity\Country | $country |
getShippingMethod() : \AdamRocska\ShippingTier\Entity\ShippingMethod
Returns the shipping method to which this shipping method branch belongs to.
setShippingMethod(\AdamRocska\ShippingTier\Entity\ShippingMethod $shippingMethod)
Injects the provided `ShippingMethod`.
\AdamRocska\ShippingTier\Entity\ShippingMethod | $shippingMethod |