PHP Класс Elcodi\Plugin\CustomShippingBundle\Provider\ShippingRangesProvider

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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