\AdamRocska\ShippingTier\EntityCarrier

Represents a shipping carrier.

Summary

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

Methods

getLabel()

getLabel() : string

Returns a human friendly / human readable label identifying the carrier.

Returns

string

getIdentifier()

getIdentifier() : string

Returns a computer program intended identifier identifying the carrier.

Returns

string

getShippingMethods()

getShippingMethods() : array<mixed,\AdamRocska\ShippingTier\Entity\ShippingMethod>

Returns the list of individual shipping methods provided by the carrier.

Returns

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

getShippingMethodByIdentifier()

getShippingMethodByIdentifier(string  $identifier) : \AdamRocska\ShippingTier\Entity\ShippingMethod

Returns a shipping method who's identifier matches the given one.

Parameters

string $identifier

Throws

\AdamRocska\ShippingTier\Entity\Carrier\Exception\NoShippingMethod

Throws a NoShippingMethod when no shipping method was matched against the received identifier.

Returns

\AdamRocska\ShippingTier\Entity\ShippingMethod