PHP Interface Sonata\Component\Basket\BasketFactoryInterface

Show file Open project: sonata-project/ecommerce Interface Usage Examples

Public Methods

Method Description
load ( Sonata\Component\Customer\CustomerInterface $customer ) : Sonata\Component\Basket\BasketInterface Load the basket.
reset ( Sonata\Component\Basket\BasketInterface $basket, boolean $full = true ) Resets the basket.
save ( Sonata\Component\Basket\BasketInterface $basket ) Save the basket.

Method Details

load() public method

Load the basket.
public load ( Sonata\Component\Customer\CustomerInterface $customer ) : Sonata\Component\Basket\BasketInterface
$customer Sonata\Component\Customer\CustomerInterface
return Sonata\Component\Basket\BasketInterface

reset() public method

Resets the basket.
public reset ( Sonata\Component\Basket\BasketInterface $basket, boolean $full = true )
$basket Sonata\Component\Basket\BasketInterface
$full boolean

save() public method

Save the basket.
public save ( Sonata\Component\Basket\BasketInterface $basket )
$basket Sonata\Component\Basket\BasketInterface