Skip to content

Commit

Permalink
Added Commentable param to __construct
Browse files Browse the repository at this point in the history
  • Loading branch information
init-penguin committed Mar 1, 2015
1 parent 2f5a00e commit f8117c3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Entity/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use Levelab\Model\Comment\Values\CommentId;
use Levelab\Model\Core\Types\Author;
use Levelab\Model\Core\Types\Commentable;

class Comment {
/**
Expand All @@ -18,17 +19,22 @@ class Comment {
* @var \DateTime
*/
private $dateTime;
/**
* @var Commentable
*/
private $commentable;

/**
* @param CommentId $id
* @param Author $author
* @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;
}

Expand Down

0 comments on commit f8117c3

Please sign in to comment.