Completed
Push — master ( 4a880b...4a9e4f )
by Emmanuel
21:39 queued 20:01
created

Application::getDefaultCommands()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 7
cts 7
cp 1
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * neuralyzer : Data Anonymization Library and CLI Tool
4
 *
5
 * PHP Version 7.1
6
 *
7
 * @author Emmanuel Dyan
8
 * @author Rémi Sauvat
9
 * @copyright 2018 Emmanuel Dyan
10
 *
11
 * @package edyan/neuralyzer
12
 *
13
 * @license GNU General Public License v2.0
14
 *
15
 * @link https://github.com/edyan/neuralyzer
16
 */
17
18
namespace Edyan\Neuralyzer\Console;
19
20
use Symfony\Component\Console\Application as BaseApplication;
21
22
/**
23
 * Run console application.
24
 */
25
class Application extends BaseApplication
26
{
27
    const VERSION = 'v3.0.0';
28
29
30
    /**
31
     * Init commands
32
     *
33
     * @return Command[] An array of default Command instances
34
     */
35 3
    public function getDefaultCommands()
36
    {
37 3
        $commands = parent::getDefaultCommands();
38 3
        $commands[] = new \Edyan\Neuralyzer\Console\Commands\RunCommand();
39 3
        $commands[] = new \Edyan\Neuralyzer\Console\Commands\ConfigExampleCommand();
40 3
        $commands[] = new \Edyan\Neuralyzer\Console\Commands\ConfigGenerateCommand();
41 3
        $commands[] = new \Edyan\Neuralyzer\Console\Commands\ConfigValidateCommand();
42
43 3
        return $commands;
44
    }
45
}
46