Completed
Push — master ( b44652...ac9cf3 )
by Andrii
03:25
created

OrderController::commands()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
ccs 0
cts 1
cp 0
rs 9.6666
cc 1
eloc 5
nc 1
nop 0
crap 2
1
<?php
2
3
namespace hiqdev\billing\hiapi\controllers;
4
5
class OrderController extends \hiapi\controllers\BaseController
6
{
7
    public function commands()
8
    {
9
        return array_merge(parent::commands(), [
10
            'ping' => [
11
                'class'  => \hiapi\commands\PingCommand::class,
12
                'answer' => 'order BANG',
13
            ],
14
        ]);
15
    }
16
}
17