Total Complexity | 6 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Coverage | 31.25% |
Changes | 0 |
1 | <?php |
||
19 | class ApiContainerController extends \yii\rest\Controller |
||
20 | { |
||
21 | /** |
||
22 | * @inheritdoc |
||
23 | */ |
||
24 | 1 | public function behaviors() |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * Lists the available versions and their respective stability for the |
||
31 | * parent module. |
||
32 | * |
||
33 | * @return string[] |
||
34 | */ |
||
35 | 1 | public function actionIndex(): array |
|
36 | { |
||
37 | 1 | return ArrayHelper::map( |
|
38 | 1 | $this->module->versionModules, |
|
39 | 'id', |
||
40 | 'factSheet' |
||
41 | ); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Handles the exceptions catched by the system bootstrapping process. |
||
46 | * @return \Exception |
||
47 | */ |
||
48 | public function actionError(): \Exception |
||
61 | } |
||
62 | |||
63 | /** |
||
64 | * Action shown when a resource is no longer available. |
||
65 | * |
||
66 | * @throws GoneHttpException |
||
67 | */ |
||
68 | public function actionGone() |
||
77 |