MoipMigrateCommand::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php namespace SOSTheBlack\Moip\Commands;
2
3
use Illuminate\Console\Command;
4
5
class MoipMigrateCommand extends Command {
6
7
	/**
8
	 * The console command name.
9
	 *
10
	 * @var string
11
	 */
12
	protected $name = 'moip:migrate';
13
14
	/**
15
	 * The console command description.
16
	 *
17
	 * @var string
18
	 */
19
	protected $description = 'Running migrations of package';
20
21
	/**
22
	 * Create a new command instance.
23
	 */
24
	public function __construct()
25
	{
26
		parent::__construct();
27
	}
28
29
	/**
30
	 * Execute the console command.
31
	 *
32
	 * @return void
33
	 */
34
	public function fire()
35
	{
36
		$this->comment('running migrations sostheblack/moip');
37
		$this->call('migrate', ['--package'=> 'sostheblack/moip']);
38
		$this->comment('Migracoes executadas');	
39
	}
40
}
41