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

Application::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 18
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 15
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 18
ccs 15
cts 15
cp 1
rs 9.4286
cc 1
eloc 15
nc 1
nop 0
crap 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