1 | <?php |
||
11 | class ClientRepository implements ClientRepositoryInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var Registry |
||
15 | */ |
||
16 | private $registry; |
||
17 | |||
18 | /** |
||
19 | * @var callable |
||
20 | */ |
||
21 | private $secretValidator; |
||
22 | |||
23 | /** |
||
24 | * @param Registry $registry |
||
25 | * @param callable|null $secretValidator |
||
26 | */ |
||
27 | public function __construct(Registry $registry, callable $secretValidator = null) |
||
32 | |||
33 | /** |
||
34 | * @param string $clientIdentifier |
||
35 | * @param string $grantType |
||
36 | * @param string|null $clientSecret |
||
37 | * @param bool $mustValidateSecret |
||
38 | * @return ClientEntity|null |
||
39 | * @throws InvalidStateException |
||
40 | * @throws QueryException |
||
41 | */ |
||
42 | public function getClientEntity($clientIdentifier, $grantType, $clientSecret = null, $mustValidateSecret = true) |
||
53 | |||
54 | /** |
||
55 | * @return ClientQuery |
||
56 | */ |
||
57 | protected function createQuery(): ClientQuery |
||
61 | } |
||
62 |