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

Path   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 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
}