Passed
Branch 4.9 (cb955a)
by Mikhail
01:30
created

Help::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace controllers;
4
5
use generators\AddonXml\AddonXmlGenerator;
6
use generators\Language\LanguageGenerator;
7
use generators\Readme\ReadmeGenerator;
8
use generators\FileGenerator;
9
use terminal\Terminal;
10
use filesystem\Filesystem;
11
use mediators\GeneratorMediator;
12
use \Config;
13
14
class Help extends AbstractController
15
{
16
    private $config;
17
    private $terminal;
18
    private $filesystem;
19
20
    use HelpTrait;
21
22
    function __construct(
23
        Config              $config,
24
        Terminal            $terminal,
25
        Filesystem          $filesystem
26
    )
27
    {
28
        $this->config               = $config;
29
        $this->terminal             = $terminal;
30
        $this->filesystem           = $filesystem;
31
    }
32
33
    /**
34
     * help:
35
     * Use for more information:
36
     * php ccg.php <generator> help
37
     * allowed generators: addon, addon-xml
38
     */
39
    public function index()
40
    {
41
        $this->help();
42
    }
43
}
44