1 | <?php |
||
21 | final class ProcessorManager |
||
22 | { |
||
23 | /** |
||
24 | * @var callable |
||
25 | */ |
||
26 | private $processors = []; |
||
27 | |||
28 | /** |
||
29 | * @param callable $processor |
||
30 | * |
||
31 | * @return ProcessorManager |
||
32 | */ |
||
33 | public function add(callable $processor): self |
||
39 | |||
40 | /** |
||
41 | * @param ServerRequestInterface $request |
||
42 | * @param GrantTypeData $grantTypeData |
||
43 | * @param GrantType $grantType |
||
44 | * |
||
45 | * @return GrantTypeData |
||
46 | * |
||
47 | * @throws OAuth2Exception |
||
48 | */ |
||
49 | public function handle(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantType $grantType): GrantTypeData |
||
55 | |||
56 | /** |
||
57 | * @param int $index |
||
58 | * |
||
59 | * @return callable |
||
60 | */ |
||
61 | private function resolve(int $index): callable |
||
74 | } |
||
75 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.