Completed
Push — master ( f85101...36fe64 )
by Pascal
10:14
created

Application   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 2
c 2
b 0
f 2
lcom 0
cbo 2
dl 0
loc 42
ccs 18
cts 18
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 18 1
A setup() 0 4 1
1
<?php
2
namespace MtGTutor\Console;
3
4
use MtGTutor\Console\Commands\ServerStatus;
5
use Symfony\Component\Console\Application as BaseApplication;
6
7
/**
8
 * Class Application
9
 * @package MtGTutor\Console
10
 */
11
class Application extends BaseApplication
12
{
13
    /**
14
     * @var string
15
     */
16
    const NAME = 'MtG-Tutor.de Helpers CLI';
17
18
    /**
19
     * @var string
20
     */
21
    const VERSION = '1.0';
22
23
    /**
24
     * Application constructor.
25
     */
26 12
    public function __construct()
27
    {
28
        $name =
29 12
            '        __  ___ __   ______      ______        __                     __    ' . PHP_EOL .
30 12
            '       /  |/  // /_ / ____/     /_  __/__  __ / /_ ____   _____  ____/ /___ ' . PHP_EOL .
31 12
            '      / /|_/ // __// / __ ______ / /  / / / // __// __ \ / ___/ / __  // _ \\' . PHP_EOL .
32 12
            '     / /  / // /_ / /_/ //_____// /  / /_/ // /_ / /_/ // /  _ / /_/ //  __/' . PHP_EOL .
33 12
            '    /_/  /_/ \__/ \____/       /_/   \__,_/ \__/ \____//_/  (_)\__,_/ \___/ ' . PHP_EOL .
34 12
            '                                                                            ' . PHP_EOL .
35 12
            '           __  __       __                            ______ __     ____' . PHP_EOL .
36 12
            '          / / / /___   / /____   ___   _____ _____   / ____// /    /  _/' . PHP_EOL .
37 12
            '         / /_/ // _ \ / // __ \ / _ \ / ___// ___/  / /    / /     / /  ' . PHP_EOL .
38 12
            '        / __  //  __// // /_/ //  __// /   (__  )  / /___ / /___ _/ /   ' . PHP_EOL .
39 12
            '       /_/ /_/ \___//_// .___/ \___//_/   /____/   \____//_____//___/   ' . PHP_EOL .
40 12
            '                      /_/                                               ' . PHP_EOL;
41
42 12
        parent::__construct($name . static::NAME, static::VERSION);
43 12
    }
44
45
    /**
46
     * Setup commands
47
     */
48 9
    public function setup()
49
    {
50 9
        $this->add(new ServerStatus());
51 9
    }
52
}
53