for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Inji\Router;
class Path {
public $path, $moduleName;
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.
public function __construct($path, $moduleName = '') {
$this->path = $path;
$this->moduleName = $moduleName;
}
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.