| 1 | <?php |
||
| 15 | class Routes |
||
| 16 | { |
||
| 17 | public $routes = [ |
||
| 18 | |||
| 19 | ]; |
||
| 20 | |||
| 21 | function mainRoutes() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param $routeName |
||
| 28 | * @param $controller |
||
| 29 | * @param $method |
||
| 30 | * @param bool $authenticated |
||
| 31 | */ |
||
| 32 | function make($routeName, $controller, $method,$authenticated = true) |
||
| 40 | |||
| 41 | function getRoutes() |
||
| 45 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.