src/Kreta/Component/Comment/Factory/CommentFactory.php
public function create(IssueInterface $issue, UserInterface $user)
    {
        $comment = new $this->className();

        return $comment
            ->setIssue($issue)
            ->setWrittenBy($user);
    }
public function create(IssueInterface $issue, UserInterface $user)
    {
        $comment = new $this->className();

        return $comment
            ->setIssue($issue)
            ->setWrittenBy($user);
    }
Creates an instance of comment.

@param \Kreta\Component\Issue\Model\Interfaces\IssueInterface $issue The issue
@param \Kreta\Component\User\Model\Interfaces\UserInterface   $user  The user

@return \Kreta\Component\Comment\Model\Interfaces\CommentInterface