Total Complexity | 4 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 93.33% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class Oauth2MigrationsController extends Oauth2BaseConsoleController implements Oauth2MigrationsControllerInterface |
||
12 | { |
||
13 | /** |
||
14 | * Name of the database component. |
||
15 | * @var string |
||
16 | */ |
||
17 | public $db = 'db'; |
||
18 | |||
19 | /** |
||
20 | * Force generation of existing migrations. |
||
21 | * @var bool |
||
22 | */ |
||
23 | public $force = false; |
||
24 | |||
25 | /** |
||
26 | * @inheritDoc |
||
27 | */ |
||
28 | 1 | public function options($actionID) |
|
29 | { |
||
30 | 1 | $options = ArrayHelper::merge(parent::options($actionID), [ |
|
31 | 1 | 'force', |
|
32 | 1 | ]); |
|
33 | |||
34 | 1 | if ($actionID === 'generate-import') { |
|
35 | $options[] = 'db'; |
||
36 | } |
||
37 | |||
38 | 1 | return $options; |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * @inheritDoc |
||
43 | */ |
||
44 | 1 | public function optionAliases() |
|
48 | 1 | ]); |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * @inheritDoc |
||
53 | */ |
||
54 | 1 | public function actions() |
|
59 | 1 | ]; |
|
60 | } |
||
62 |