Total Complexity | 6 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class ClientSecretPostAuthenticationMethod implements ClientAuthenticationMethodInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var ClientStorageInterface |
||
21 | */ |
||
22 | private $clientStorage; |
||
23 | |||
24 | public function __construct(ClientStorageInterface $clientStorage) |
||
27 | } |
||
28 | |||
29 | function support(ServerRequestInterface $request, array $requestData): bool |
||
|
|||
30 | { |
||
31 | return !empty($requestData['client_id']) && !empty($requestData['client_secret']); |
||
32 | } |
||
33 | |||
34 | function authenticate(ServerRequestInterface $request, array $requestData): ?ClientInterface |
||
41 | } |
||
42 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.