From f8117c3807fb94a7efed6d25d75577a1d4b9c794 Mon Sep 17 00:00:00 2001 From: init-penguin Date: Sun, 1 Mar 2015 21:11:41 +0300 Subject: [PATCH] Added Commentable param to __construct --- Entity/Comment.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Entity/Comment.php b/Entity/Comment.php index 5e7e0ce..dd8219a 100644 --- a/Entity/Comment.php +++ b/Entity/Comment.php @@ -3,6 +3,7 @@ use Levelab\Model\Comment\Values\CommentId; use Levelab\Model\Core\Types\Author; +use Levelab\Model\Core\Types\Commentable; class Comment { /** @@ -18,6 +19,10 @@ class Comment { * @var \DateTime */ private $dateTime; + /** + * @var Commentable + */ + private $commentable; /** * @param CommentId $id @@ -25,10 +30,11 @@ class Comment { * @param $comment * @param \DateTime $dateTime */ - public function __construct(CommentId $id, Author $author, $comment, \DateTime $dateTime) { + public function __construct(CommentId $id, Author $author, $comment, Commentable $commentable, \DateTime $dateTime) { $this->id = $id; $this->author = $author; $this->comment = $comment; + $this->commentable = $commentable; $this->dateTime = $dateTime; }