Total Complexity | 7 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class ClientSecretBasicAuthenticationMethod implements ClientAuthenticationMethodInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var ClientStorageInterface |
||
21 | */ |
||
22 | private $clientStorage; |
||
23 | |||
24 | public function __construct(ClientStorageInterface $clientStorage) |
||
25 | { |
||
26 | $this->clientStorage = $clientStorage; |
||
27 | } |
||
28 | |||
29 | function support(ServerRequestInterface $request, array $requestData): bool |
||
33 | } |
||
34 | |||
35 | function authenticate(ServerRequestInterface $request, array $requestData): ?ClientInterface |
||
49 | } |
||
50 | } |
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.