PHP Class WellCommerce\Bundle\OrderBundle\Provider\OrderModifierProvider

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

Public Methods

Method Description
__construct ( Doctrine\Common\Collections\Collection $defaultModifiers ) OrderModifierProvider constructor.
getOrderModifier ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order, string $name ) : WellCommerce\Bundle\OrderBundle\Entity\OrderModifierInterface

Private Methods

Method Description
createOrderModifier ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order, string $name ) : WellCommerce\Bundle\OrderBundle\Entity\OrderModifierInterface
getDefaultOrderModifier ( string $name ) : WellCommerce\Bundle\OrderBundle\Entity\OrderModifierInterface

Method Details

__construct() public method

OrderModifierProvider constructor.
public __construct ( Doctrine\Common\Collections\Collection $defaultModifiers )
$defaultModifiers Doctrine\Common\Collections\Collection

getOrderModifier() public method

public getOrderModifier ( WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order, string $name ) : WellCommerce\Bundle\OrderBundle\Entity\OrderModifierInterface
$order WellCommerce\Bundle\OrderBundle\Entity\OrderInterface
$name string
return WellCommerce\Bundle\OrderBundle\Entity\OrderModifierInterface