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

@param ProductInterface $product
Set the related product .