Application::getDefaultCommands()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
namespace Genkgo\Srvcleaner\Console;
3
4
use Genkgo\Srvcleaner\Command\CleanCommand;
5
use Genkgo\Srvcleaner\Srvcleaner;
6
use Symfony\Component\Console\Application as BaseApplication;
7
use Symfony\Component\Console\Command\Command;
8
9
/**
10
 * Class Application
11
 * @package Genkgo\Srvcleaner\Console
12
 */
13
class Application extends BaseApplication
14
{
15
    /**
16
     *
17
     */
18
    public function __construct()
19
    {
20
        parent::__construct('Srvcleaner', Srvcleaner::VERSION);
21
    }
22
23
    /**
24
     * @return Command[]
25
     */
26
    protected function getDefaultCommands()
27
    {
28
        $commands = parent::getDefaultCommands();
29
        $commands[] = new CleanCommand();
30
        return $commands;
31
    }
32
}
33