1 | <?php |
||
11 | |||
12 | final class UserRepository implements UserRepositoryInterface |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var User |
||
17 | */ |
||
18 | private $user; |
||
19 | |||
20 | /** |
||
21 | * @var callable |
||
22 | */ |
||
23 | private $credentialsValidator; |
||
24 | |||
25 | public function __construct(User $user, callable $credentialsValidator = null) |
||
38 | |||
39 | /** |
||
40 | * @param string $username |
||
41 | * @param string $password |
||
42 | * @param string $grantType |
||
43 | * @param ClientEntityInterface $clientEntity |
||
44 | * @return UserEntityInterface|null |
||
45 | * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint |
||
46 | */ |
||
47 | public function getUserEntityByUserCredentials( |
||
56 | |||
57 | } |
||
58 |