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