$pattern
$pattern : string
The route pattern that trigger the class method
Model of a Route, informs class and its method that will be triggered when a pattern is found (works with specific HTTP methods if needed)
__construct(string $pattern, string $class, string $method, string $httpMethod = null)
Instantiate a object of Route
| string | $pattern | The route pattern that trigger the class method |
| string | $class | The class of route method |
| string | $method | The method that will be executed |
| string | $httpMethod | (optional) null to process any HTTP method, string to specify which one (separated by commas) |