| 1 | <?php |
||
| 12 | trait MiddlewaresLoaderTrait |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @void |
||
| 17 | */ |
||
| 18 | public function loadMiddlewares() |
||
| 23 | |||
| 24 | |||
| 25 | /** |
||
| 26 | * Registering Route Group's |
||
| 27 | * |
||
| 28 | * @void |
||
| 29 | */ |
||
| 30 | private function registerMiddlewareGroups(array $middlewareGroups = []) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Registering Route Middleware's |
||
| 39 | * |
||
| 40 | * @void |
||
| 41 | */ |
||
| 42 | private function registerRouteMiddleware(array $routeMiddleware = []) |
||
| 48 | |||
| 49 | |||
| 50 | } |
||
| 51 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: