1 | <?php |
||
2 | |||
3 | namespace Inji\Router; |
||
4 | |||
5 | |||
6 | class Path { |
||
7 | public $path, $moduleName; |
||
0 ignored issues
–
show
|
|||
8 | |||
9 | 2 | public function __construct($path, $moduleName = '') { |
|
10 | 2 | $this->path = $path; |
|
11 | 2 | $this->moduleName = $moduleName; |
|
12 | } |
||
13 | } |
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.