PHP 클래스 Elcodi\Plugin\CustomShippingBundle\Provider\ShippingRangesProvider

파일 보기 프로젝트 열기: elcodi/bamboo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$carrierRepository Elcodi\Plugin\CustomShippingBundle\Repository\CarrierRepository carrierRepository
$currencyConverter Elcodi\Component\Currency\Services\CurrencyConverter currencyConverter
$zoneMatcher Elcodi\Component\Zone\Services\ZoneMatcher ZoneMatcher

공개 메소드들

메소드 설명
__construct ( Elcodi\Plugin\CustomShippingBundle\Repository\CarrierRepository $carrierRepository, Elcodi\Component\Currency\Services\CurrencyConverter $currencyConverter, Elcodi\Component\Zone\Services\ZoneMatcher $zoneMatcher ) Construct method
getAllShippingRangesSatisfiedWithCart ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface[] Given a Cart, return a set of ShippingRanges satisfied.

비공개 메소드들

메소드 설명
getShippingRangesSatisfiedByCart ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface $carrier ) : Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface[] Return the first Carrier's ShippingRange satisfied by a Cart.
isShippingPriceRangeSatisfiedByCart ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface $shippingRange ) : boolean Given ShippingPriceRange is satisfied by a cart
isShippingRangeSatisfiedByCart ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface $shippingRange ) : boolean Return if Carrier Range is satisfied by cart
isShippingRangeZonesSatisfiedByCart ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface $shippingRange ) : boolean Given ShippingRange zones are satisfied by a cart,
isShippingWeightRangeSatisfiedByCart ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface $shippingRange ) : boolean Given ShippingWeightRange is satisfied by a cart

메소드 상세

__construct() 공개 메소드

Construct method
public __construct ( Elcodi\Plugin\CustomShippingBundle\Repository\CarrierRepository $carrierRepository, Elcodi\Component\Currency\Services\CurrencyConverter $currencyConverter, Elcodi\Component\Zone\Services\ZoneMatcher $zoneMatcher )
$carrierRepository Elcodi\Plugin\CustomShippingBundle\Repository\CarrierRepository Carrier Repository
$currencyConverter Elcodi\Component\Currency\Services\CurrencyConverter Currency Converter
$zoneMatcher Elcodi\Component\Zone\Services\ZoneMatcher Zone matcher

getAllShippingRangesSatisfiedWithCart() 공개 메소드

Given a Cart, return a set of ShippingRanges satisfied.
public getAllShippingRangesSatisfiedWithCart ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface[]
$cart Elcodi\Component\Cart\Entity\Interfaces\CartInterface Cart
리턴 Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface[] Set of carriers ranges satisfied

프로퍼티 상세

$carrierRepository 보호되어 있는 프로퍼티

carrierRepository
protected CarrierRepository,Elcodi\Plugin\CustomShippingBundle\Repository $carrierRepository
리턴 Elcodi\Plugin\CustomShippingBundle\Repository\CarrierRepository

$currencyConverter 보호되어 있는 프로퍼티

currencyConverter
protected CurrencyConverter,Elcodi\Component\Currency\Services $currencyConverter
리턴 Elcodi\Component\Currency\Services\CurrencyConverter

$zoneMatcher 보호되어 있는 프로퍼티

ZoneMatcher
protected ZoneMatcher,Elcodi\Component\Zone\Services $zoneMatcher
리턴 Elcodi\Component\Zone\Services\ZoneMatcher