| Total Complexity | 7 |
| Total Lines | 77 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class User { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @var integer |
||
| 9 | */ |
||
| 10 | protected $id; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $username; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $email; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $password; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return int |
||
| 29 | */ |
||
| 30 | public function getId() |
||
| 31 | { |
||
| 32 | return $this->id; |
||
| 33 | } |
||
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function getUsername() |
||
| 40 | { |
||
| 41 | return $this->username; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $username |
||
| 46 | */ |
||
| 47 | public function setUsername($username) |
||
| 48 | { |
||
| 49 | $this->username = $username; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getEmail(): string |
||
| 56 | { |
||
| 57 | return $this->email; |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param string $email |
||
| 62 | */ |
||
| 63 | public function setEmail(string $email) |
||
| 64 | { |
||
| 65 | $this->email = $email; |
||
| 66 | } |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | public function getPassword(): string |
||
| 72 | { |
||
| 73 | return $this->password; |
||
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @param string $password |
||
| 78 | */ |
||
| 79 | public function setPassword(string $password) |
||
| 82 | } |
||
| 83 | |||
| 84 | |||
| 85 | } |