Completed
Push — master ( 8527b6...a1fe62 )
by Charles
02:30
created

ServerController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A actions() 0 6 1
1
<?php
2
3
namespace api\controllers\v1;
4
5
use yrc\rest\Controller;
6
use yrc\actions\OneTimeKeyAction;
7
use yii\web\HttpException;
8
use Yii;
9
10
class ServerController extends Controller
11
{
12
    /**
13
     * Map actions to the appropriate action class
14
     *
15
     * @return array
16
     */
17
    public function actions()
18
    {
19
        return [
20
            'otk' => OneTimeKeyAction::class
21
        ];
22
    }
23
}
24