Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Src\Orthanc\Domain\Patient;
- /**
- * Сущность пациента.
- */
- class Patient
- {
- /**
- * @var PatientUuid
- */
- private $uuid;
- /**
- * @var string
- */
- private $name;
- /**
- * @var \DateTime
- */
- private $birthDate;
- /**
- * @var Sex
- */
- private $sex;
- /**
- * @param PatientUuid $uuid
- * @param string $name
- * @param \DateTime $birthDate
- * @param Sex $sex
- */
- public function __construct(PatientUuid $uuid, string $name, \DateTime $birthDate, Sex $sex)
- {
- $this->uuid = $uuid;
- $this->name = $name;
- $this->birthDate = $birthDate;
- $this->sex = $sex;
- }
- /**
- * Геттер имени пациента.
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Геттер даты рождения пациента.
- * @return \DateTime
- */
- public function getBirthDate()
- {
- return $this->birthDate;
- }
- /**
- * Геттер пола пациента.
- * @return Sex
- */
- public function getSex(): Sex
- {
- return $this->sex;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement