PHP Class WellCommerce\Bundle\OrderBundle\Visitor\OrderProductTotalVisitor

Author: Adam Piotrowski ([email protected])
Inheritance: implements WellCommerce\Bundle\OrderBundle\Visitor\OrderVisitorInterface
Datei anzeigen Open project: wellcommerce/wellcommerce

Public Methods

Method Description
__construct ( WellCommerce\Bundle\CurrencyBundle\Helper\CurrencyHelperInterface $helper ) OrderProductTotalVisitor constructor.
visitOrder ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order )

Private Methods

Method Description
calculateGrossPrice ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order ) : float
calculateNetPrice ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order ) : float
calculateQuantity ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order ) : integer
calculateTaxAmount ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order ) : float
calculateWeight ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order ) : float

Method Details

__construct() public method

OrderProductTotalVisitor constructor.
public __construct ( WellCommerce\Bundle\CurrencyBundle\Helper\CurrencyHelperInterface $helper )
$helper WellCommerce\Bundle\CurrencyBundle\Helper\CurrencyHelperInterface

visitOrder() public method

public visitOrder ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order )
$order WellCommerce\Bundle\OrderBundle\Entity\OrderInterface