| 1 | <?php |
||
| 20 | class PasswordAuthentication { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Password. |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $password; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Username. |
||
| 31 | * |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | private $username; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Constructor. |
||
| 38 | * |
||
| 39 | * @param string $username The username. |
||
| 40 | * @param string $password The password. |
||
| 41 | */ |
||
| 42 | public function __construct($username, $password) { |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Get the password. |
||
| 49 | * |
||
| 50 | * @return string Returns the password. |
||
| 51 | */ |
||
| 52 | public function getPassword() { |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Get the username. |
||
| 58 | * |
||
| 59 | * @return string Returns the username. |
||
| 60 | */ |
||
| 61 | public function getUsername() { |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Set the password. |
||
| 67 | * |
||
| 68 | * @param string $password The password. |
||
| 69 | * @return PasswordAuthentication Returns the password authentication. |
||
| 70 | */ |
||
| 71 | public function setPassword($password) { |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Set the username. |
||
| 78 | * |
||
| 79 | * @param string $username The username. |
||
| 80 | * @return PasswordAuthentication Returns the password authentication. |
||
| 81 | */ |
||
| 82 | public function setUsername($username) { |
||
| 86 | |||
| 87 | } |
||
| 88 |