protected function createCart(ShopInterface $shop, ClientInterface $client = null)
    {
        $cart = $this->initResource();
        $cart->setShop($shop);
        $cart->setClient($client);

        $this->createResource($cart);

        return $cart;
    }
protected function createCart(ShopInterface $shop, ClientInterface $client = null)
    {
        $cart = $this->initResource();
        $cart->setShop($shop);
        $cart->setClient($client);

        $this->createResource($cart);

        return $cart;
    }
protected function createCart ( ShopInterface $ shop , ClientInterface $ client = null ) { $ cart = $ this -> initResource ( ) ; $ cart -> setShop ( $ shop ) ; $ cart -> setClient ( $ client ) ; $ this -> createResource ( $ cart ) ; return $ cart ; }
Creates cart using factory

@param ShopInterface        $shop
@param ClientInterface|null $client

@return CartInterface
Creates cart using factory