Help::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 10
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Vados\MigrationRunner\command;
4
5
/**
6
 * Class Help
7
 * @package Vados\MigrationRunner\command
8
 */
9
class Help implements ICommand
10
{
11
    public function run()
12
    {
13
        $text = <<<HELP
14
Available methods:
15
    - help - Show help information
16
    - create {name} - Create new migration
17
    - up {runCount=0} - Apply new migrations
18
    - down {runCount=1} - Revert some migration
19
HELP;
20
        echo $text . PHP_EOL;
21
    }
22
}