1 | <?php |
||
27 | final class KeyAnalyzerCommand extends Command |
||
28 | { |
||
29 | /** |
||
30 | * @var JWKAnalyzerManager |
||
31 | */ |
||
32 | private $analyzerManager; |
||
33 | |||
34 | /** |
||
35 | * @var JsonConverterInterface |
||
36 | */ |
||
37 | private $jsonConverter; |
||
38 | |||
39 | /** |
||
40 | * KeyAnalyzerCommand constructor. |
||
41 | * |
||
42 | * @param JWKAnalyzerManager $analyzerManager |
||
43 | * @param JsonConverterInterface $jsonConverter |
||
44 | * @param string|null $name |
||
45 | */ |
||
46 | public function __construct(JWKAnalyzerManager $analyzerManager, JsonConverterInterface $jsonConverter, string $name = null) |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | protected function configure() |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | protected function execute(InputInterface $input, OutputInterface $output) |
||
79 | |||
80 | /** |
||
81 | * @param InputInterface $input |
||
82 | * |
||
83 | * @return JWK |
||
84 | */ |
||
85 | private function getKey(InputInterface $input): JWK |
||
95 | } |
||
96 |