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()); }
public function __construct(Comment $entity) { $this->content = (string) $entity->getContent(); $this->userName = (string) $entity->getUserName(); $this->userEmail = (string) $entity->getUserEmail(); $this->userWeb = (string) $entity->getUserWeb(); $this->status = (int) $entity->getStatus(); }