| Total Complexity | 4 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class AuthParam extends BaseParam |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * The username field |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected string $username; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * The password field |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected string $password; |
||
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | /** |
||
| 31 | * Return the username value |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getUsername(): string |
||
| 35 | { |
||
| 36 | return $this->username; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Return the password value |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getPassword(): string |
||
| 44 | { |
||
| 45 | return $this->password; |
||
| 46 | } |
||
| 47 | |||
| 48 | |||
| 49 | /** |
||
| 50 | * Set the username value |
||
| 51 | * @param string $username |
||
| 52 | * @return $this |
||
| 53 | */ |
||
| 54 | public function setUsername(string $username): self |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Set the password value |
||
| 63 | * @param string $password |
||
| 64 | * @return $this |
||
| 65 | */ |
||
| 66 | public function setPassword(string $password): self |
||
| 71 | } |
||
| 72 | } |
||
| 73 |