Passed
Push — v5 ( 6adbf6...c0775f )
by Alexey
06:03
created

Path::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
crap 1
1
<?php
2
/**
3
 * Created by IntelliJ IDEA.
4
 * User: inji
5
 * Date: 08.01.2018
6
 * Time: 1:20
7
 */
8
9
namespace Inji\Router;
10
11
12
class Path {
13
    public $path, $moduleName;
0 ignored issues
show
Coding Style introduced by
It is generally advisable to only define one property per statement.

Only declaring a single property per statement allows you to later on add doc comments more easily.

It is also recommended by PSR2, so it is a common style that many people expect.

Loading history...
14
15 2
    public function __construct($path, $moduleName = '') {
16 2
        $this->path = $path;
17 2
        $this->moduleName = $moduleName;
18
    }
19
}