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