Completed
Push — master ( 6db6da...5370d9 )
by Angel
03:42
created

ApiVersionController::behaviors()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace roaresearch\yii2\roa\controllers;
4
5
/**
6
 * Shows the fact sheet for the api version its contained.
7
 *
8
 * @property \roaresearch\yii2\roa\modules\ApiVersion $module
9
 *
10
 * @author Angel (Faryshta) Guevara <[email protected]>
11
 */
12
class ApiVersionController extends \yii\rest\Controller
13
{
14
    /**
15
     * @inheritdoc
16
     */
17
    public function behaviors()
18
    {
19
        return [];
20
    }
21
22
    /**
23
     * List of all the resources available for the parent module api version.
24
     *
25
     * @return array
26
     */
27
    public function actionIndex()
28
    {
29
        return $this->module->getFactSheet();
30
    }
31
}
32