Completed
Push — master ( 5fc8fc...78226d )
by James
03:03
created

NullWebProject::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 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 1
    public function __construct($version = '')
25
    {
26 1
        parent::__construct('webhelper', $version);
27 1
    }
28
29 1
    public function getParameters()
30
    {
31
        return [
32
            'project' => [
33 1
                'aliasname' => $this->getName(),
34 1
                'documentroot' => realpath(__DIR__.'/../../'),
35 1
                'vhostname' => $this->getName(),
36
                'portnumber' => 80
37 1
            ]
38 1
        ];
39
    }
40
}
41