Completed
Push — master ( 69fb56...37d2a4 )
by James
05:09
created

NullWebServer   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 81.82%

Importance

Changes 4
Bugs 0 Features 1
Metric Value
wmc 4
c 4
b 0
f 1
lcom 0
cbo 1
dl 0
loc 31
ccs 9
cts 11
cp 0.8182
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A extractVersion() 0 6 1
A extractRootConfigurationFile() 0 6 1
A getActiveConfig() 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 string $version the semver-like version of the apache webserver
23
     */
24 10
    public function __construct($version = '')
25
    {
26 10
        parent::__construct('null', $version);
27 10
    }
28
29 1
    public function extractVersion($settings = '')
30
    {
31 1
        $settings = '';
32
33 1
        return $settings;
34
    }
35
36 1
    public function extractRootConfigurationFile($settings = '')
37
    {
38 1
        $settings = '';
39
40 1
        return $settings;
41
    }
42
43
    public function getActiveConfig($file = '')
44
    {
45
        return [];
46
    }
47
}
48