Passed
Branch new-architecture (764111)
by James
02:34
created

NullWebServer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 12
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/**
4
 * This file is, guess what, part of WebHelper.
5
 *
6
 * (c) James <[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 JamesRezo\WebHelper\WebServer;
13
14
/**
15
 * NullWebServer is the webserver class used when no web server found.
16
 */
17
class NullWebServer extends WebServer
18
{
19
    /**
20
     * Constructor.
21
     *
22
     * @param int $version the version of the apache webserver
23
     */
24 1
    public function __construct($version = '')
25
    {
26 1
        parent::__construct('null', $version);
27 1
    }
28
}
29