CommandServer::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 2
b 0
f 1
nc 1
nop 0
dl 0
loc 5
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
3
/*
4
 * This file is part of PHP DNS Server.
5
 *
6
 * (c) Yif Swery <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace yswery\DNS\Console;
13
14
use Symfony\Component\Console\Application;
15
use yswery\DNS\Console\Commands\VersionCommand;
16
use yswery\DNS\Server;
17
18
class CommandServer extends Application
19
{
20
    public function __construct()
21
    {
22
        parent::__construct('PhpDnsServer', Server::VERSION);
23
24
        $this->registerCommands();
25
    }
26
27
    protected function registerCommands()
28
    {
29
        $this->add(new VersionCommand());
30
    }
31
}
32