public function createBasketElement(ProductInterface $product = null, array $options = array()) { $basketElement = $this->getBasketElementManager()->create(); $this->buildBasketElement($basketElement, $product, $options); return $basketElement; }