SidebarServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 58
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
A boot() 0 6 1
A provides() 0 6 1
1
<?php namespace Arcanesoft\Sidebar;
2
3
use Arcanedev\Support\PackageServiceProvider;
4
5
/**
6
 * Class     SidebarServiceProvider
7
 *
8
 * @package  Arcanesoft\Sidebar
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class SidebarServiceProvider extends PackageServiceProvider
12
{
13
    /* -----------------------------------------------------------------
14
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Vendor name.
20
     *
21
     * @var string
22
     */
23
    protected $vendor = 'arcanesoft';
24
25
    /**
26
     * Package name.
27
     *
28
     * @var string
29
     */
30
    protected $package = 'sidebar';
31
32
    /* -----------------------------------------------------------------
33
     |  Main Methods
34
     | -----------------------------------------------------------------
35
     */
36
37
    /**
38
     * Register the service provider.
39
     */
40 76
    public function register()
41
    {
42 76
        parent::register();
43
44 76
        $this->singleton(Contracts\Manager::class, Manager::class);
45 76
    }
46
47
    /**
48
     * Boot the service provider.
49
     */
50 76
    public function boot()
51
    {
52 76
        parent::boot();
53
54
        //
55 76
    }
56
57
    /**
58
     * Get the services provided by the provider.
59
     *
60
     * @return array
61
     */
62 4
    public function provides()
63
    {
64
        return [
65 4
            Contracts\Manager::class,
66
        ];
67
    }
68
}
69