class ShippingOption implements Purchasable (View source)

Methods

__construct($name, $description, $identifier, Price $price, TaxClass $taxClass, $taxReference = null, $option = null, $meta = null)

No description

getPrice()

Get the price for the purchasable item.

Collection
getPrices()

Get prices for the purchasable item.

int
getUnitQuantity()

Return the purchasable unit quantity.

getTaxClass()

Return the purchasable tax class.

string|null
getTaxReference()

Return the purchasable tax reference.

string
getType()

Return what type of purchasable this is, i.e. physical,digital,shipping.

string
getName()

Return the name for the purchasable.

string
getDescription()

Return the description for the purchasable.

string|null
getOption()

Return the option for this purchasable.

string
getIdentifier()

Return a unique string which identifies the purchasable item.

bool
isShippable()

Returns whether the purchasable item is shippable.

string
getThumbnail()

Return the thumbnail for the purchasable item.

Details

__construct($name, $description, $identifier, Price $price, TaxClass $taxClass, $taxReference = null, $option = null, $meta = null)

No description

Parameters

$name
$description
$identifier
Price $price
TaxClass $taxClass
$taxReference
$option
$meta

Price getPrice()

Get the price for the purchasable item.

Return Value

Price

Collection getPrices()

Get prices for the purchasable item.

Return Value

Collection

int getUnitQuantity()

Return the purchasable unit quantity.

Return Value

int

TaxClass getTaxClass()

Return the purchasable tax class.

Return Value

TaxClass

string|null getTaxReference()

Return the purchasable tax reference.

Return Value

string|null

string getType()

Return what type of purchasable this is, i.e. physical,digital,shipping.

Return Value

string

string getName()

Return the name for the purchasable.

Return Value

string

string getDescription()

Return the description for the purchasable.

Return Value

string

string|null getOption()

Return the option for this purchasable.

Return Value

string|null

string getIdentifier()

Return a unique string which identifies the purchasable item.

Return Value

string

bool isShippable()

Returns whether the purchasable item is shippable.

Return Value

bool

string getThumbnail()

Return the thumbnail for the purchasable item.

Return Value

string