public function __construct(Comment $comment) { $this->id = $comment->getId(); $this->setContent($comment->getContent()); $this->setUserName($comment->getUserName()); $this->setUserEmail($comment->getUserEmail()); $this->setUserWeb($comment->getUserWeb()); }