BillController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A commands() 0 5 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\php\billing\bill\Bill;
14
15
class BillController extends \hiapi\controllers\BaseController
16
{
17
    protected $entityClass = Bill::class;
18
19
    public function commands()
20
    {
21
        return array_merge(parent::commands(), [
22
            'search' => [
23
                'class'  => \hiapi\commands\SearchCommand::class,
24
            ],
25
        ]);
26
    }
27
}
28