PHP Class WellCommerce\Bundle\ShippingBundle\Context\OrderContext

Author: Adam Piotrowski ([email protected])
Inheritance: implements WellCommerce\Bundle\ShippingBundle\Calculator\ShippingSubjectInterface
显示文件 Open project: wellcommerce/wellcommerce

Protected Properties

Property Type Description
$order WellCommerce\Bundle\OrderBundle\Entity\OrderInterface

Public Methods

Method Description
__construct ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order ) OrderAdapter constructor.
getCurrency ( ) : string
getGrossPrice ( ) : float
getNetPrice ( ) : float
getQuantity ( ) : integer
getTaxAmount ( ) : float
getWeight ( ) : float

Method Details

__construct() public method

OrderAdapter constructor.
public __construct ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order )
$order WellCommerce\Bundle\OrderBundle\Entity\OrderInterface

getCurrency() public method

public getCurrency ( ) : string
return string

getGrossPrice() public method

public getGrossPrice ( ) : float
return float

getNetPrice() public method

public getNetPrice ( ) : float
return float

getQuantity() public method

public getQuantity ( ) : integer
return integer

getTaxAmount() public method

public getTaxAmount ( ) : float
return float

getWeight() public method

public getWeight ( ) : float
return float

Property Details

$order protected_oe property

protected OrderInterface,WellCommerce\Bundle\OrderBundle\Entity $order
return WellCommerce\Bundle\OrderBundle\Entity\OrderInterface