Application   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 2
1
<?php
2
/**
3
 * Application.php
4
 *
5
 * MIT LICENSE
6
 *
7
 * LICENSE: This source file is subject to the MIT license.
8
 * A copy of the licenses text was distributed alongside this
9
 * file (usually the repository or package root). The text can also
10
 * be obtained through one of the following sources:
11
 * * http://opensource.org/licenses/MIT
12
 * * https://github.com/suralc/pvra/blob/master/LICENSE
13
 *
14
 * @author     suralc <[email protected]>
15
 * @license    http://opensource.org/licenses/MIT  MIT
16
 */
17
namespace Pvra\Console;
18
19
20
use Symfony\Component\Console\Application as BaseApplication;
21
22
/**
23
 * Class Application
24
 *
25
 * @package Pvra\Console
26
 */
27
class Application extends BaseApplication
28
{
29
    const APPLICATION_DEFAULT_VERSION = '0.2.0-dev';
30
31
    /**
32
     * @inheritdoc
33
     */
34
    public function __construct($name = 'UNKNOWN', $version = '@package_version@')
35
    {
36
        if ($version === '@package' . '_version@') {
37
            $version = static::APPLICATION_DEFAULT_VERSION;
38
        }
39
40
        parent::__construct($name, $version);
41
    }
42
}
43