PHP Class WellCommerce\Bundle\ShippingBundle\Visitor\ShippingMethodOrderVisitor

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

Public Methods

Method Description
__construct ( WellCommerce\Bundle\OrderBundle\Provider\OrderModifierProviderInterface $modifierProvider, WellCommerce\Bundle\ShippingBundle\Provider\ShippingMethodProviderInterface $methodProvider ) ShippingMethodOrderVisitor constructor.
visitOrder ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order )

Private Methods

Method Description
getCostCollection ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order ) : Doctrine\Common\Collections\Collection Returns the costs collection for existing shipping method or all shipping methods if current method is not longer available
getCurrentShippingMethodCostsCollection ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order ) : Doctrine\Common\Collections\Collection Returns the collection of costs for current shipping method
getShippingCostCollection ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order ) : Doctrine\Common\Collections\Collection Returns the collection of costs for all available shipping methods

Method Details

__construct() public method

ShippingMethodOrderVisitor constructor.
public __construct ( WellCommerce\Bundle\OrderBundle\Provider\OrderModifierProviderInterface $modifierProvider, WellCommerce\Bundle\ShippingBundle\Provider\ShippingMethodProviderInterface $methodProvider )
$modifierProvider WellCommerce\Bundle\OrderBundle\Provider\OrderModifierProviderInterface
$methodProvider WellCommerce\Bundle\ShippingBundle\Provider\ShippingMethodProviderInterface

visitOrder() public method

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