PHP Class WellCommerce\Bundle\ShippingBundle\Provider\ShippingMethodProvider

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

Public Methods

Method Description
__construct ( WellCommerce\Bundle\ShippingBundle\Repository\ShippingMethodRepositoryInterface $repository, Doctrine\Common\Collections\Collection $calculators ) AbstractShippingMethodProvider constructor.
getCosts ( WellCommerce\Bundle\ShippingBundle\Calculator\ShippingSubjectInterface $subject ) : Doctrine\Common\Collections\Collection
getShippingMethodCosts ( WellCommerce\Bundle\ShippingBundle\Entity\ShippingMethodInterface $method, WellCommerce\Bundle\ShippingBundle\Calculator\ShippingSubjectInterface $subject ) : Doctrine\Common\Collections\Collection

Private Methods

Method Description
getCalculator ( WellCommerce\Bundle\ShippingBundle\Entity\ShippingMethodInterface $shippingMethod ) : WellCommerce\Bundle\ShippingBundle\Calculator\ShippingCalculatorInterface

Method Details

__construct() public method

AbstractShippingMethodProvider constructor.
public __construct ( WellCommerce\Bundle\ShippingBundle\Repository\ShippingMethodRepositoryInterface $repository, Doctrine\Common\Collections\Collection $calculators )
$repository WellCommerce\Bundle\ShippingBundle\Repository\ShippingMethodRepositoryInterface
$calculators Doctrine\Common\Collections\Collection

getCosts() public method

public getCosts ( WellCommerce\Bundle\ShippingBundle\Calculator\ShippingSubjectInterface $subject ) : Doctrine\Common\Collections\Collection
$subject WellCommerce\Bundle\ShippingBundle\Calculator\ShippingSubjectInterface
return Doctrine\Common\Collections\Collection

getShippingMethodCosts() public method

public getShippingMethodCosts ( WellCommerce\Bundle\ShippingBundle\Entity\ShippingMethodInterface $method, WellCommerce\Bundle\ShippingBundle\Calculator\ShippingSubjectInterface $subject ) : Doctrine\Common\Collections\Collection
$method WellCommerce\Bundle\ShippingBundle\Entity\ShippingMethodInterface
$subject WellCommerce\Bundle\ShippingBundle\Calculator\ShippingSubjectInterface
return Doctrine\Common\Collections\Collection