OrderController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
eloc 7
c 2
b 0
f 1
dl 0
loc 11
ccs 0
cts 9
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A commands() 0 9 1
1
<?php
2
/**
3
 * API for Billing
4
 *
5
 * @link      https://github.com/hiqdev/billing-hiapi
6
 * @package   billing-hiapi
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2017-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\billing\hiapi\controllers;
12
13
use hiqdev\billing\hiapi\commands\order\CalculateValueCommand;
14
15
class OrderController extends \hiapi\controllers\BaseController
16
{
17
    public function commands()
18
    {
19
        return array_merge(parent::commands(), [
20
            'ping' => [
21
                'class'  => \hiapi\commands\PingCommand::class,
22
                'answer' => 'order BANG',
23
            ],
24
            'calculate' => [
25
                'class'  => CalculateValueCommand::class,
26
            ],
27
        ]);
28
    }
29
}
30