| 1 | <?php |
||
| 13 | final class BasicAuth implements Authentication |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $username; |
||
| 19 | |||
| 20 | /** |
||
| 21 | 7 | * @var string |
|
| 22 | */ |
||
| 23 | 7 | private $password; |
|
| 24 | 7 | ||
| 25 | 7 | /** |
|
| 26 | * @param string $username |
||
| 27 | * @param string $password |
||
| 28 | */ |
||
| 29 | public function __construct($username, $password) |
||
| 34 | 1 | ||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function authenticate(RequestInterface $request) |
||
| 44 | } |
||
| 45 |