| Total Complexity | 6 | 
| Total Lines | 91 | 
| Duplicated Lines | 0 % | 
| Coverage | 45.45% | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 9 | class User extends \stdClass  | 
            ||
| 10 | { | 
            ||
| 11 | const GENDER_MALE = 'male';  | 
            ||
| 12 | const GENDER_FEMALE = 'female';  | 
            ||
| 13 | const GENDER_OTHER = 'other';  | 
            ||
| 14 | const GENDER_UNKNOWN = 'unknown';  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * @var string  | 
            ||
| 18 | */  | 
            ||
| 19 | public $id;  | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * @var string  | 
            ||
| 23 | */  | 
            ||
| 24 | public $firstname;  | 
            ||
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * @var string  | 
            ||
| 28 | */  | 
            ||
| 29 | public $lastname;  | 
            ||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * @var string  | 
            ||
| 33 | */  | 
            ||
| 34 | public $email;  | 
            ||
| 35 | |||
| 36 | /**  | 
            ||
| 37 | * @var bool  | 
            ||
| 38 | */  | 
            ||
| 39 | public $emailVerified = false;  | 
            ||
| 40 | |||
| 41 | /**  | 
            ||
| 42 | * @var \DateTime|null  | 
            ||
| 43 | */  | 
            ||
| 44 | protected $birthday;  | 
            ||
| 45 | |||
| 46 | /**  | 
            ||
| 47 | * @var string|null  | 
            ||
| 48 | */  | 
            ||
| 49 | public $username;  | 
            ||
| 50 | |||
| 51 | /**  | 
            ||
| 52 | * One of the GENDER_-constants  | 
            ||
| 53 | *  | 
            ||
| 54 | * @var string  | 
            ||
| 55 | */  | 
            ||
| 56 | protected $gender = GENDER_UNKNOWN;  | 
            ||
| 57 | |||
| 58 | /**  | 
            ||
| 59 | * @var string|null  | 
            ||
| 60 | */  | 
            ||
| 61 | public $fullname;  | 
            ||
| 62 | |||
| 63 | /**  | 
            ||
| 64 | * @var string|null  | 
            ||
| 65 | */  | 
            ||
| 66 | public $pictureURL;  | 
            ||
| 67 | |||
| 68 | /**  | 
            ||
| 69 | * @return \DateTime|null  | 
            ||
| 70 | */  | 
            ||
| 71 | public function getBirthday(): ?\DateTime  | 
            ||
| 72 |     { | 
            ||
| 73 | return $this->birthday;  | 
            ||
| 74 | }  | 
            ||
| 75 | |||
| 76 | /**  | 
            ||
| 77 | * @param \DateTime|null $birthday  | 
            ||
| 78 | */  | 
            ||
| 79 | public function setBirthday(?\DateTime $birthday): void  | 
            ||
| 80 |     { | 
            ||
| 81 | $this->birthday = $birthday;  | 
            ||
| 82 | }  | 
            ||
| 83 | |||
| 84 | /**  | 
            ||
| 85 | * @return string  | 
            ||
| 86 | */  | 
            ||
| 87 | public function getGender(): string  | 
            ||
| 88 |     { | 
            ||
| 89 | return $this->gender;  | 
            ||
| 90 | }  | 
            ||
| 91 | |||
| 92 | /**  | 
            ||
| 93 | * @param string $sex  | 
            ||
| 94 | */  | 
            ||
| 95 | public function setGender(string $gender): void  | 
            ||
| 96 |     { | 
            ||
| 97 | $genders = [  | 
            ||
| 98 | GENDER_OTHER,  | 
            ||
| 99 | GENDER_MALE,  | 
            ||
| 100 | GENDER_FEMALE,  | 
            ||
| 125 |