Esempio n. 1
0
 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());
 }
Esempio n. 2
0
 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();
 }