SilverShop\Shipping\ShippingPackage
Encapsulation of shipping package data
Synopsis
class ShippingPackage
{
- // members
- protected $weight;
- protected $height;
- protected $width;
- protected $depth;
- protected $diameter;
- protected $value;
- protected $currency;
- protected $quantity;
- protected array $defaultdimensions = ;
- protected array $defaultoptions = ;
- protected array $dimensionaliases = ;
- // methods
- public void __construct()
- public void toArray()
- public void __toString()
- public void volume()
- public void weight()
- public void height()
- public void width()
- public void depth()
- public void value()
- public void quantity()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
Members
protected
- $currency
- $defaultdimensions
- $defaultoptions
- $depth
- $diameter
- $dimensionaliases
- $height
- $quantity
- $value
- $weight
- $width
Methods
public
- __construct()
- __toString()
- depth()
- height()
- quantity()
- toArray()
- value()
- volume() — Calculate total volume, based on given dimensions
- weight()
- width()