Help   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 10 1
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
}