| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class BasicAuth implements Authentication |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $username; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $password; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $username |
||
| 27 | * @param string $password |
||
| 28 | */ |
||
| 29 | 3 | public function __construct($username, $password) |
|
| 33 | 3 | } |
|
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | 1 | public function authenticate(RequestInterface $request) |
|
| 45 |