Application::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * Moodle component manager.
5
 *
6
 * @author Luke Carrier <[email protected]>
7
 * @copyright 2016 Luke Carrier
8
 * @license GPL-3.0+
9
 */
10
11
namespace ComponentManager\Console;
12
13
use ComponentManager\DependencyInjection\ContainerAwareTrait;
14
use Symfony\Component\Console\Application as ConsoleApplication;
15
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
16
17
/**
18
 * Component manager application entry point.
19
 */
20
class Application extends ConsoleApplication
21
        implements ContainerAwareInterface {
22
    use ContainerAwareTrait;
23
24
    /**
25
     * Release name.
26
     *
27
     * @var string
28
     */
29
    const VERSION = '0.5.0';
30
31
    /**
32
     * Initialiser.
33
     */
34
    public function __construct() {
35
        parent::__construct('Component Manager', static::VERSION);
36
    }
37
}
38