Beispiel #1
0
 public function __construct(ArticleId $articleId, ArticleUrl $articleUrl, ArticleRepositoryInterface $articleRepository, ArticleFetcherInterface $articleFetcher)
 {
     parent::__construct($articleId, $articleUrl, $articleRepository);
     $this->articleFetcher = $articleFetcher;
 }
 /**
  * Set the article as submitted
  *
  * @param Article $article
  *
  * @return bool
  */
 public function articleSubmitted(Article $article)
 {
     return $this->db->insert('article', array('id' => $article->getId(), 'url' => $article->getUrl(), 'status' => ArticleMetaData::STATE_SUBMITTED));
 }