BuildApplication::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 9
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace libphonenumber\buildtools;
4
5
use libphonenumber\buildtools\Commands\BuildMetadataPHPFromXMLCommand;
6
use libphonenumber\buildtools\Commands\GeneratePhonePrefixDataCommand;
7
use libphonenumber\buildtools\Commands\GenerateTimeZonesMapDataCommand;
8
use Symfony\Component\Console\Application;
9
10
class BuildApplication extends Application
11
{
12
    const VERSION = '5';
13
14
    public function __construct()
15
    {
16
        parent::__construct('libphonenumber Data Builder', self::VERSION);
17
18
        $this->addCommands(
19
            array(
20
                new BuildMetadataPHPFromXMLCommand(),
21
                new GeneratePhonePrefixDataCommand(),
22
                new GenerateTimeZonesMapDataCommand(),
23
            )
24
        );
25
    }
26
}
27