Completed
Push — master ( 51d11c...72fa5d )
by Rougin
01:42
created

ResetCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 27
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 1
1
<?php
2
3
namespace Rougin\Refinery\Console;
4
5
/**
6
 * Reset Command
7
 *
8
 * @package Refinery
9
 * @author  Rougin Royce Gutib <[email protected]>
10
 */
11
class ResetCommand extends ChangeCommand
12
{
13
    /**
14
     * @var string
15
     */
16
    protected $done = 'Rolled back: ';
17
18
    /**
19
     * @var string
20
     */
21
    protected $pending = 'Rolling back:';
22
23
    /**
24
     * @var boolean
25
     */
26
    protected $reversed = true;
27
28
    /**
29
     * Configures the current command.
30
     *
31
     * @return void
32
     */
33
    protected function configure()
34
    {
35
        $this->setName('reset')->setDescription('Resets the database schema version to 0');
36
    }
37
}
38