1 | <?php |
||
12 | final class Middleware |
||
13 | { |
||
14 | /** |
||
15 | * Obtains private keys. |
||
16 | * |
||
17 | * @var KeyProviderInterface |
||
18 | */ |
||
19 | private $keyProvider; |
||
20 | |||
21 | /** |
||
22 | * Extracts the token information from the incoming request. |
||
23 | * |
||
24 | * @var TokenExtractorInterface |
||
25 | */ |
||
26 | private $tokenExtractor; |
||
27 | |||
28 | /** |
||
29 | * Validates the extracted token. |
||
30 | * |
||
31 | * @var TokenValidatorInterface |
||
32 | */ |
||
33 | private $tokenValidator; |
||
34 | |||
35 | /** |
||
36 | * Container in which to store the private key. |
||
37 | * |
||
38 | * @var ArrayAccess |
||
39 | */ |
||
40 | private $container; |
||
|
|||
41 | |||
42 | /** |
||
43 | * Construct a new instance of this middleware. |
||
44 | * |
||
45 | * @param KeyProviderInterface $provider Obtains private keys. |
||
46 | * @param TokenExtractorInterface $extractor Extracts the token information from the incoming request. |
||
47 | * @param TokenValidatorInterface $validator Validates the extracted token. |
||
48 | * @param ArrayAccess $container Container in which to store the private key. |
||
49 | */ |
||
50 | public function __construct( |
||
61 | |||
62 | /** |
||
63 | * Execute this middleware. |
||
64 | * |
||
65 | * @param ServerRequestInterface $request The incoming PSR7 request. |
||
66 | * @param ResponseInterface $response The outgoing PSR7 response. |
||
67 | * @param callable $next The next middleware. |
||
68 | * |
||
69 | * @return ResponseInterface |
||
70 | */ |
||
71 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) |
||
86 | } |
||
87 |
This check marks private properties in classes that are never used. Those properties can be removed.