GenerateHelp   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 12 1
1
<?php
2
/**
3
 * Part of Cli for CodeIgniter
4
 *
5
 * @author     Kenji Suzuki <https://github.com/kenjis>
6
 * @license    MIT License
7
 * @copyright  2015 Kenji Suzuki
8
 * @link       https://github.com/kenjis/codeigniter-cli
9
 */
10
11
namespace Kenjis\CodeIgniter_Cli\Command;
12
13
use Aura\Cli\Help;
14
15
class GenerateHelp extends Help
16
{
17
    public function init()
18
    {
19
        $this->setSummary('Generate code.');
20
        $this->setUsage('migration <classname>');
21
        $this->setUsage([
22
            'migration <classname>  Generate migration file skeleton',
23
        ]);
24
        $this->setDescr(
25
            '<<bold>>generate<<reset>> command generates code.' . PHP_EOL
26
            . '        eg, generate migration Create_user_table'
27
        );
28
    }
29
}
30