VasriCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 38
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A handle() 0 4 1
1
<?php
2
3
4
namespace ExoUNX\Vasri\Commands;
5
6
use Exception;
7
use Illuminate\Console\Command;
8
use ExoUNX\Vasri\ManifestBuilder;
9
10
/**
11
 * Class VasriCommand
12
 *
13
 * @package ExoUNX\Vasri
14
 * @author  Gaige Lama <[email protected]>
15
 * @license MIT License
16
 * @link    https://github.com/ExoUNX/Vasri
17
 */
18
class VasriCommand extends Command
19
{
20
    /**
21
     * Command signature
22
     * @var string
23
     */
24
    protected $signature = 'vasri:build';
25
26
    /**
27
     * Command description
28
     * @var string
29
     */
30
    protected $description = 'Build Manifest';
31
32
    /**
33
     * @var ManifestBuilder
34
     */
35
    private $manifest;
36
37
    /**
38
     * Inherits constructor from Illuminate\Console\Command
39
     */
40
    public function __construct()
41
    {
42
        parent::__construct();
43
        $this->manifest = new ManifestBuilder();
44
45
    }
46
47
    /**
48
     * The executing method
49
     * @throws Exception
50
     */
51
    public function handle()
52
    {
53
        $this->manifest->deployManifest();
54
    }
55
}
56