CommandServer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
eloc 4
c 2
b 0
f 1
dl 0
loc 12
ccs 0
cts 6
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerCommands() 0 3 1
A __construct() 0 5 1
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