PHP Class WellCommerce\Bundle\ShippingBundle\Context\ProductContext

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

Protected Properties

Property Type Description
$product WellCommerce\Bundle\ProductBundle\Entity\ProductInterface

Public Methods

Method Description
__construct ( WellCommerce\Bundle\ProductBundle\Entity\ProductInterface $product ) ProductContext constructor.
getCurrency ( ) : string
getGrossPrice ( ) : float
getNetPrice ( ) : float
getQuantity ( ) : integer
getTaxAmount ( ) : float
getWeight ( ) : float

Method Details

__construct() public method

ProductContext constructor.
public __construct ( WellCommerce\Bundle\ProductBundle\Entity\ProductInterface $product )
$product WellCommerce\Bundle\ProductBundle\Entity\ProductInterface

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

$product protected_oe property

protected ProductInterface,WellCommerce\Bundle\ProductBundle\Entity $product
return WellCommerce\Bundle\ProductBundle\Entity\ProductInterface