Example #1
0
 public function addArticle(Article $article)
 {
     if (!$this->articles->contains($article)) {
         $article->setFeed($this);
         $this->articles->add($article);
     }
 }
Example #2
0
 /**
  * @param Article $article
  * @return Tag
  */
 public function addArticle(Article $article)
 {
     if (!$this->articles->contains($article)) {
         $this->articles->add($article);
     }
     return $this;
 }