Newscoop\Subscription\Article::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( Subscription $subscription, Article $article )
$subscription Subscription
$article Newscoop\Entity\Article
    public function __construct(Subscription $subscription, ArticleEntity $article)
    {
        $this->subscription = $subscription;
        $this->subscription->addArticle($this);
        $this->article = $article;
        $this->articleNumber = $article->getNumber();
        $this->noticeSent = 'N';
        $this->paidDays = 0;
    }