1 | <?php |
||
8 | final class ArrayAuthentication implements AuthenticationInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | private $users; |
||
14 | |||
15 | /** |
||
16 | * ArrayAuthentication constructor. |
||
17 | * @param array $users |
||
18 | */ |
||
19 | public function __construct(array $users) |
||
23 | |||
24 | /** |
||
25 | * @param string $username |
||
26 | * @param string $password |
||
27 | * @return bool |
||
28 | */ |
||
29 | public function authenticate(string $username, string $password): bool |
||
33 | } |