ServerController::actions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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