Help::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 9
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 3
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 static $allowedMethods = [
17
        'index',
18
    ];
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
     * @inheritdoc
35
     */
36
    public static function getAllowedMethods(): array
37
    {
38
        return self::$allowedMethods;
39
    }
40
41
    /**
42
     * help:
43
     * Use for more information:
44
     * php ccg.php <generator> help
45
     * allowed generators: addon, addon-xml
46
     */
47
    public function index()
48
    {
49
        $this->help();
50
    }
51
}
52