/** * @param \ConsultBundle\Entity\QuestionComment $questionComment */ public function __construct(QuestionComment $questionComment = null) { if (!empty($questionComment)) { parent::__construct($questionComment); $this->text = $questionComment->getText(); $this->identifier = $questionComment->getIdentifier(); $this->practoAccountId = $questionComment->getPractoAccountId(); } }
/** * @param \ConsultBundle\Entity\DoctorReply $reply */ public function __construct(DoctorReply $reply = null) { if (!empty($reply)) { parent::__construct($reply); $this->practoAccountId = $reply->getDoctorQuestion()->getPractoAccountId(); $this->text = $reply->getText(); $this->rating = $reply->getRating(); } }
/** * @param \ConsultBundle\Entity\DoctorNotification $doctorNotificationEntity */ public function __construct(DoctorNotification $doctorNotificationEntity = null) { parent::__construct($doctorNotificationEntity); if (!is_null($doctorNotificationEntity)) { $this->settext($doctorNotificationEntity->gettext()); $this->setViewed($doctorNotificationEntity->isViewed()); $this->setquestionId($doctorNotificationEntity->getQuestion()->getId()); $this->setpractoAccountId($doctorNotificationEntity->getpractoAccountId()); } }
/** * @param \ConsultBundle\Entity\Question $questionEntity */ public function __construct(Question $questionEntity = null) { parent::__construct($questionEntity); if (!is_null($questionEntity)) { $this->setSpeciality($questionEntity->getSpeciality()); $this->setViewCount($questionEntity->getViewCount()); $this->state = $questionEntity->getState(); $this->setSubject($questionEntity->getSubject()); $this->setText($questionEntity->getText()); $this->viewedAt = $questionEntity->getViewedAt(); $this->setShareCount($questionEntity->getShareCount()); } }