PHP Class Elcodi\Plugin\CustomShippingBundle\EventListener\ShippingCollectEventListener

Show file Open project: elcodi/bamboo Class Usage Examples

Protected Properties

Property Type Description
$plugin Elcodi\Component\Plugin\Entity\Plugin Plugin
$shippingRangesProvider Elcodi\Plugin\CustomShippingBundle\Provider\ShippingRangesProvider ShippingRanges provider

Public Methods

Method Description
__construct ( Elcodi\Component\Plugin\Entity\Plugin $plugin, ShippingRangesProvider $shippingRangesProvider ) Construct method
addCustomShippingMethods ( Elcodi\Component\Shipping\Event\ShippingCollectionEvent $event ) Given a Cart, return a set of Valid ShippingRanges satisfied.

Method Details

__construct() public method

Construct method
public __construct ( Elcodi\Component\Plugin\Entity\Plugin $plugin, ShippingRangesProvider $shippingRangesProvider )
$plugin Elcodi\Component\Plugin\Entity\Plugin Plugin
$shippingRangesProvider Elcodi\Plugin\CustomShippingBundle\Provider\ShippingRangesProvider ShippingRanges provider

addCustomShippingMethods() public method

Given a Cart, return a set of Valid ShippingRanges satisfied.
public addCustomShippingMethods ( Elcodi\Component\Shipping\Event\ShippingCollectionEvent $event )
$event Elcodi\Component\Shipping\Event\ShippingCollectionEvent Event

Property Details

$plugin protected property

Plugin
protected Plugin,Elcodi\Component\Plugin\Entity $plugin
return Elcodi\Component\Plugin\Entity\Plugin

$shippingRangesProvider protected property

ShippingRanges provider
protected ShippingRangesProvider,Elcodi\Plugin\CustomShippingBundle\Provider $shippingRangesProvider
return Elcodi\Plugin\CustomShippingBundle\Provider\ShippingRangesProvider