EquityServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 75%

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 3
cts 4
cp 0.75
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
namespace Samerior\MobileMoney\Equity;
4
5
use Samerior\MobileMoney\Equity\Library\StkRequest;
6
use Illuminate\Contracts\Foundation\Application;
7
use Illuminate\Support\ServiceProvider;
8
9
/**
10
 * Class EquityServiceProvider
11
 * @package Samerior\MobileMoney\Equity
12
 */
13
class EquityServiceProvider extends ServiceProvider
14
{
15 2
    public function register()
16
    {
17
        $this->app->bind('equity', function (Application $app) {
18
            return $app->make(StkRequest::class);
19 2
        });
20 2
    }
21
}
22