Completed
Push — master ( 4deee6...b383ba )
by Zach
05:43 queued 03:44
created

MigrateReset   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 24
rs 10
c 1
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
1
<?php
2
3
namespace Yarak\Commands;
4
5
use Yarak\Console\YarakCommand;
6
7
class MigrateReset extends YarakCommand
8
{
9
    /**
10
     * The command signature.
11
     *
12
     * @var string
13
     */
14
    protected $signature = 'migrate:reset';
15
16
    /**
17
     * The command description.
18
     *
19
     * @var string
20
     */
21
    protected $description = 'Rollback all migrations.';
22
23
    /**
24
     * Handle the command.
25
     */
26
    protected function handle()
27
    {
28
        $this->getMigrator($this->getOutput())->reset();
29
    }
30
}
31