Sonata\Component\Product\AddBasket::setProduct PHP Метод

setProduct() публичный Метод

Set the related product.
public setProduct ( Sonata\Component\Product\ProductInterface $product )
$product Sonata\Component\Product\ProductInterface
    public function setProduct(ProductInterface $product)
    {
        $this->productId = $product->getId();
        $this->product = $product;
    }