MakeMVC   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A handle() 0 5 1
1
<?php
2
3
namespace Acacha\AdminLTETemplateLaravel\Console;
4
5
use Illuminate\Console\Command;
6
7
/**
8
 * Class MakeMVC.
9
 */
10
class MakeMVC extends MakeVC
11
{
12
    use CreatesModels;
13
14
    /**
15
     * The name and signature of the console command.
16
     */
17
    protected $signature = 'make:mvc {link : The route link} {action? : View or controller to create} 
18
    {--t|type=controller : Type of route to create (regular,controller,resource)} {--m|method=get : HTTP method} 
19
    {--api : Route is an api route}';
20
21
    /**
22
     * The console command description.
23
     *
24
     * @var string
25
     */
26
    protected $description = 'Create a full MVC(Model View Controller) and his corresponding route and menu entry';
27
28
    /**
29
     * MakeMVC constructor.
30
     */
31
    public function __construct()
32
    {
33
        parent::__construct();
34
    }
35
36
    /**
37
     * Execute the console command.
38
     */
39
    public function handle()
40
    {
41
        $this->createModel($this->argument('link'));
42
        parent::handle();
43
    }
44
}
45