NullWebProject   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 24
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getParameters() 0 11 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\WebProject;
13
14
/**
15
 * NullWebProject is the webproject class used when no known php project is found.
16
 */
17
class NullWebProject extends WebProject
18
{
19
    /**
20
     * Constructor.
21
     *
22
     * @param string $version the semver-like version of the webproject
23
     */
24 2
    public function __construct($version = '')
25
    {
26 2
        parent::__construct('webhelper', $version);
27 2
    }
28
29 2
    public function getParameters()
30
    {
31
        return [
32
            'project' => [
33 2
                'aliasname' => $this->getName(),
34 2
                'documentroot' => getcwd(),
35 2
                'vhostname' => $this->getName(),
36 2
                'portnumber' => 80,
37 2
            ],
38 2
        ];
39
    }
40
}
41