ResetCommand::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Rougin\Refinery\Console;
4
5
/**
6
 * Reset Command
7
 *
8
 * @package Refinery
9
 * @author  Rougin 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 24
    protected function configure()
34
    {
35 24
        $this->setName('reset')->setDescription('Resets the database schema version to 0');
36 24
    }
37
}
38