ProxyServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 10 1
A boot() 0 2 1
1
<?php
2
3
namespace Modules\Proxy\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
use Modules\Proxy\Contracts\ProxyRepositoryContract;
7
use Modules\Proxy\Contracts\ProxyServiceContract;
8
use Modules\Proxy\Repositories\ProxyRepository;
9
use Modules\Proxy\Services\ProxyService;
10
11
class ProxyServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * Boot the application events.
15
     *
16
     * @return void
17
     */
18 43
    public function boot()
19
    {
20 43
    }
21
22
    /**
23
     * Register the service provider.
24
     *
25
     * @return void
26
     */
27 43
    public function register()
28
    {
29 43
        $this->app->bind(
30 43
            ProxyServiceContract::class,
31 43
            ProxyService::class
32
        );
33
34 43
        $this->app->bind(
35 43
            ProxyRepositoryContract::class,
36 43
            ProxyRepository::class
37
        );
38 43
    }
39
}
40