Completed
Push — dev ( 6d8737...fe3822 )
by Zach
02:19
created

MigrateReset::execute()   A

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
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Yarak\Commands;
4
5
class MigrateReset extends YarakCommand
6
{
7
    /**
8
     * Configure the command.
9
     */
10
    protected function configure()
11
    {
12
        $this->setName('migrate:reset')
13
            ->setDescription('Rollback all migrations.')
14
            ->setHelp('This command allows you to rollback all database migrations.');
15
    }
16
17
    /**
18
     * Handle the command.
19
     */
20
    protected function handle()
21
    {
22
        $this->getMigrator($this->getOutput())->reset();
23
    }
24
}
25