/**
  * {@inheritdoc}
  */
 public function addProduct(ProductInterface $product)
 {
     if (!$this->products->contains($product)) {
         $this->products->add($product);
     }
     return $this;
 }
Beispiel #2
0
 /**
  * {@inheritdoc}
  */
 public function addAssociatedProduct(ProductInterface $product)
 {
     if (!$this->hasAssociatedProduct($product)) {
         $this->associatedProducts->add($product);
     }
 }
 /**
  * @param ProductInterface $product
  * @return ArticleInterface
  */
 public function addProduct(ProductInterface $product)
 {
     $this->products->add($product);
     return $this;
 }