Application   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getDefaultCommands() 0 6 1
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