| 1 | <?php |
||
| 11 | class UsernameAndPasswordToken implements TokenInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $username; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $password; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * UsernameAndPasswordToken constructor. |
||
| 25 | * |
||
| 26 | * @param string $username |
||
| 27 | * @param string $password |
||
| 28 | * |
||
| 29 | * @throws \InvalidArgumentException |
||
| 30 | */ |
||
| 31 | 4 | public function __construct($username, $password) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | 1 | public function getAuthentication() |
|
| 55 | } |
||
| 56 |