Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class Oauth2EncryptionController extends Oauth2BaseConsoleController |
||
11 | { |
||
12 | /** |
||
13 | * @var string|null |
||
14 | */ |
||
15 | public $keyName = null; |
||
16 | |||
17 | /** |
||
18 | * @inheritDoc |
||
19 | */ |
||
20 | public function options($actionID) |
||
21 | { |
||
22 | if (in_array($actionID, ['key-usage', 'rotate-keys'])) { |
||
23 | $options = [ |
||
24 | 'keyName', |
||
25 | ]; |
||
26 | } |
||
27 | return ArrayHelper::merge(parent::options($actionID), $options ?? []); |
||
28 | } |
||
29 | |||
30 | public function optionAliases() |
||
31 | { |
||
32 | return ArrayHelper::merge(parent::optionAliases(), [ |
||
33 | 'k' => 'keyName', |
||
34 | ]); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @inheritDoc |
||
39 | */ |
||
40 | public function actions() |
||
45 | ]; |
||
46 | } |
||
47 | } |
||
48 |