$label
$label : string
A human friendly / human readable label identifying the carrier.
Represents a shipping carrier during runtime.
$shippingMethods : array<mixed,\AdamRocska\ShippingTier\Entity\ShippingMethod>
The list of individual shipping methods provided by the carrier.
__construct(string $label, string $identifier, array<mixed,\AdamRocska\ShippingTier\Entity\ShippingMethod> $shippingMethods)
Carrier constructor.
string | $label | A human friendly / human readable label identifying the carrier. |
string | $identifier | A computer program intended identifier identifying the carrier. |
array<mixed,\AdamRocska\ShippingTier\Entity\ShippingMethod> | $shippingMethods | The list of individual shipping methods provided by the carrier. |
getShippingMethods() : array<mixed,\AdamRocska\ShippingTier\Entity\ShippingMethod>
Returns the list of individual shipping methods provided by the carrier.
getShippingMethodByIdentifier(string $identifier) : \AdamRocska\ShippingTier\Entity\ShippingMethod
Returns a shipping method who's identifier matches the given one.
string | $identifier |
Throws a NoShippingMethod
when no shipping
method was matched against the received
identifier.