Advertisement
Guest User

Untitled

a guest
May 20th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.26 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Src\Orthanc\Domain\Patient;
  4.  
  5.  
  6. /**
  7.  * Сущность пациента.
  8.  */
  9. class Patient
  10. {
  11.  
  12.     /**
  13.      * @var PatientUuid
  14.      */
  15.     private $uuid;
  16.  
  17.     /**
  18.      * @var string
  19.      */
  20.     private $name;
  21.  
  22.     /**
  23.      * @var \DateTime
  24.      */
  25.     private $birthDate;
  26.  
  27.     /**
  28.      * @var Sex
  29.      */
  30.     private $sex;
  31.  
  32.     /**
  33.      * @param PatientUuid $uuid
  34.      * @param string      $name
  35.      * @param \DateTime   $birthDate
  36.      * @param Sex         $sex
  37.      */
  38.     public function __construct(PatientUuid $uuid, string $name, \DateTime $birthDate, Sex $sex)
  39.     {
  40.         $this->uuid = $uuid;
  41.         $this->name = $name;
  42.         $this->birthDate = $birthDate;
  43.         $this->sex = $sex;
  44.     }
  45.  
  46.     /**
  47.      * Геттер имени пациента.
  48.      * @return string
  49.      */
  50.     public function getName()
  51.     {
  52.         return $this->name;
  53.     }
  54.  
  55.     /**
  56.      * Геттер даты рождения пациента.
  57.      * @return \DateTime
  58.      */
  59.     public function getBirthDate()
  60.     {
  61.         return $this->birthDate;
  62.     }
  63.  
  64.     /**
  65.      * Геттер пола пациента.
  66.      * @return Sex
  67.      */
  68.     public function getSex(): Sex
  69.     {
  70.         return $this->sex;
  71.     }
  72.  
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement