| 1 | <?php |
||
| 8 | class Account |
||
| 9 | { |
||
| 10 | private $loginName; |
||
| 11 | private $loginPassword; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param string|null $loginName |
||
| 15 | * @param string|null $loginPassword |
||
| 16 | */ |
||
| 17 | public function __construct($loginName = null, $loginPassword = null) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $loginName |
||
| 25 | * |
||
| 26 | * @return Account |
||
| 27 | */ |
||
| 28 | public function setLoginName($loginName) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function getLoginName() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $loginPassword |
||
| 45 | * |
||
| 46 | * @return Account |
||
| 47 | */ |
||
| 48 | public function setLoginPassword($loginPassword) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getLoginPassword() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return bool |
||
| 65 | */ |
||
| 66 | public function isValid() |
||
| 74 | } |
||
| 75 |