| 1 | <?php |
||
| 4 | class UserCredentials |
||
| 5 | { |
||
| 6 | const TYPE_ID = 'id'; |
||
| 7 | const TYPE_NAME = 'name'; |
||
| 8 | |||
| 9 | /** @var string */ |
||
| 10 | private $password; |
||
| 11 | |||
| 12 | /** @var string */ |
||
| 13 | private $type; |
||
| 14 | |||
| 15 | /** @var string */ |
||
| 16 | private $username; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * UserCredentials constructor. |
||
| 20 | * |
||
| 21 | * @param string $username |
||
| 22 | * @param string $password |
||
| 23 | * @param string $type |
||
| 24 | */ |
||
| 25 | public function __construct($username, $password, $type = self::TYPE_NAME) |
||
| 31 | |||
| 32 | public function getUsernameCompound() |
||
| 36 | |||
| 37 | public function getUsername() |
||
| 41 | |||
| 42 | public function getPassword() |
||
| 46 | } |
||
| 47 |