CommandServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A provides() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arcanedev\Support\Providers;
6
7
/**
8
 * Class     CommandServiceProvider
9
 *
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
abstract class CommandServiceProvider extends ServiceProvider
13
{
14
    /* -----------------------------------------------------------------
15
     |  Properties
16
     | -----------------------------------------------------------------
17
     */
18
19
    /**
20
     * The commands to be registered.
21
     *
22
     * @var array
23
     */
24
    protected $commands = [];
25
26
    /**
27
     * Indicates if loading of the provider is deferred.
28
     *
29
     * @var bool
30
     */
31
    protected $defer = true;
32
33
    /* -----------------------------------------------------------------
34
     |  Main Methods
35
     | -----------------------------------------------------------------
36
     */
37
38
    /**
39
     * Boot the service provider.
40
     */
41
    public function boot()
42
    {
43
        $this->commands($this->commands);
44
    }
45
46
    /**
47
     * Get the provided commands.
48
     *
49
     * @return array
50
     */
51
    public function provides()
52
    {
53
        return $this->commands;
54
    }
55
}
56