Completed
Push — master ( 2f25ac...247007 )
by ARCANEDEV
32s queued 10s
created

DeferredServicesProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 29
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
A provides() 0 6 1
1
<?php namespace Arcanedev\RouteViewer\Providers;
2
3
use Arcanedev\RouteViewer\{Contracts, RouteViewer};
4
use Arcanedev\Support\Providers\ServiceProvider;
5
use Illuminate\Contracts\Support\DeferrableProvider;
6
7
/**
8
 * Class     DeferredServicesProvider
9
 *
10
 * @package  Arcanedev\RouteViewer\Providers
11
 * @author   ARCANEDEV <[email protected]>
12
 */
13
class DeferredServicesProvider extends ServiceProvider implements DeferrableProvider
14
{
15
    /* -----------------------------------------------------------------
16
     |  Main Methods
17
     | -----------------------------------------------------------------
18
     */
19
20
    /**
21
     * Register any application services.
22
     */
23 24
    public function register(): void
24
    {
25 24
        parent::register();
26
27 24
        $this->singleton(Contracts\RouteViewer::class, RouteViewer::class);
28 24
    }
29
30
    /**
31
     * Get the services provided by the provider.
32
     *
33
     * @return array
34
     */
35 4
    public function provides(): array
36
    {
37
        return [
38 4
            Contracts\RouteViewer::class,
39
        ];
40
    }
41
}
42