| Total Complexity | 10 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class UserParam extends BaseParam |
||
| 6 | { |
||
| 7 | protected string $username = ''; |
||
| 8 | protected string $lastname = ''; |
||
| 9 | protected string $firstname = ''; |
||
| 10 | protected string $password = ''; |
||
| 11 | protected string $age = ''; |
||
| 12 | |||
| 13 | public function getUsername(): string |
||
| 14 | { |
||
| 15 | return $this->username; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function setUsername(string $username): self |
||
| 19 | { |
||
| 20 | $this->username = $username; |
||
| 21 | |||
| 22 | return $this; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getPassword(): string |
||
| 26 | { |
||
| 27 | return $this->password; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function setPassword(string $password): self |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getLastname(): string |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getFirstname(): string |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getAge(): string |
||
| 48 | { |
||
| 49 | return $this->age; |
||
| 50 | } |
||
| 51 | |||
| 52 | public function setLastname(string $lastname): self |
||
| 53 | { |
||
| 54 | $this->lastname = $lastname; |
||
| 55 | return $this; |
||
| 56 | } |
||
| 57 | |||
| 58 | public function setFirstname(string $firstname): self |
||
| 62 | } |
||
| 63 | |||
| 64 | public function setAge(string $age): self |
||
| 65 | { |
||
| 66 | $this->age = $age; |
||
| 70 |