1 | <?php |
||
21 | final class TokenEndpointAuthenticationMethodManager |
||
22 | { |
||
23 | /** |
||
24 | * @var TokenEndpointAuthenticationMethod[] |
||
25 | */ |
||
26 | private $tokenEndpointAuthenticationMethodNames = []; |
||
27 | |||
28 | /** |
||
29 | * @var TokenEndpointAuthenticationMethod[] |
||
30 | */ |
||
31 | private $tokenEndpointAuthenticationMethods = []; |
||
32 | |||
33 | /** |
||
34 | * @param TokenEndpointAuthenticationMethod $tokenEndpointAuthenticationMethod |
||
35 | * |
||
36 | * @return TokenEndpointAuthenticationMethodManager |
||
37 | */ |
||
38 | public function add(TokenEndpointAuthenticationMethod $tokenEndpointAuthenticationMethod): self |
||
47 | |||
48 | /** |
||
49 | * @return string[] |
||
50 | */ |
||
51 | public function all(): array |
||
55 | |||
56 | /** |
||
57 | * @param string $tokenEndpointAuthenticationMethod |
||
58 | * |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function has(string $tokenEndpointAuthenticationMethod): bool |
||
65 | |||
66 | /** |
||
67 | * @param string $tokenEndpointAuthenticationMethod |
||
68 | * |
||
69 | * @throws \InvalidArgumentException |
||
70 | * |
||
71 | * @return TokenEndpointAuthenticationMethod |
||
72 | */ |
||
73 | public function get(string $tokenEndpointAuthenticationMethod): TokenEndpointAuthenticationMethod |
||
79 | |||
80 | /** |
||
81 | * @return TokenEndpointAuthenticationMethod[] |
||
82 | */ |
||
83 | public function getTokenEndpointAuthenticationMethods(): array |
||
87 | |||
88 | /** |
||
89 | * @param ServerRequestInterface $request |
||
90 | * @param TokenEndpointAuthenticationMethod $authenticationMethod |
||
|
|||
91 | * @param mixed $clientCredentials The client credentials found in the request |
||
92 | * |
||
93 | * @throws OAuth2Exception |
||
94 | * |
||
95 | * @return null|ClientId |
||
96 | */ |
||
97 | public function findClientInformationInTheRequest(ServerRequestInterface $request, TokenEndpointAuthenticationMethod &$authenticationMethod = null, &$clientCredentials = null) |
||
124 | |||
125 | /** |
||
126 | * @param ServerRequestInterface $request |
||
127 | * @param Client $client |
||
128 | * @param TokenEndpointAuthenticationMethod $authenticationMethod |
||
129 | * @param mixed $clientCredentials |
||
130 | * |
||
131 | * @return bool |
||
132 | */ |
||
133 | public function isClientAuthenticated(ServerRequestInterface $request, Client $client, TokenEndpointAuthenticationMethod $authenticationMethod, $clientCredentials): bool |
||
146 | } |
||
147 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.