PHP Class Sonata\Component\Basket\BasketBuilder

Inheritance: implements Sonata\Component\Basket\BasketBuilderInterface
Show file Open project: sonata-project/ecommerce Class Usage Examples

Protected Properties

Property Type Description
$addressManager Sonata\Component\Customer\AddressManagerInterface
$deliveryPool Sonata\Component\Delivery\Pool
$paymentPool Sonata\Component\Payment\Pool
$productPool Sonata\Component\Product\Pool

Public Methods

Method Description
__construct ( Pool $productPool, Sonata\Component\Customer\AddressManagerInterface $addressManager, Pool $deliveryPool, Pool $paymentPool )
build ( Sonata\Component\Basket\BasketInterface $basket ) Build a basket.

Method Details

__construct() public method

public __construct ( Pool $productPool, Sonata\Component\Customer\AddressManagerInterface $addressManager, Pool $deliveryPool, Pool $paymentPool )
$productPool Sonata\Component\Product\Pool
$addressManager Sonata\Component\Customer\AddressManagerInterface
$deliveryPool Sonata\Component\Delivery\Pool
$paymentPool Sonata\Component\Payment\Pool

build() public method

Build a basket.
public build ( Sonata\Component\Basket\BasketInterface $basket )
$basket Sonata\Component\Basket\BasketInterface

Property Details

$addressManager protected property

protected AddressManagerInterface,Sonata\Component\Customer $addressManager
return Sonata\Component\Customer\AddressManagerInterface

$deliveryPool protected property

protected Pool,Sonata\Component\Delivery $deliveryPool
return Sonata\Component\Delivery\Pool

$paymentPool protected property

protected Pool,Sonata\Component\Payment $paymentPool
return Sonata\Component\Payment\Pool

$productPool protected property

protected Pool,Sonata\Component\Product $productPool
return Sonata\Component\Product\Pool