Autarky\Routing\Route::__construct PHP Method

__construct() public method

public __construct ( array $methods, string $pattern, callable $controller, string $name = null, array $options = [] )
$methods array HTTP methods allowed for this route
$pattern string
$controller callable
$name string
$options array
    public function __construct(array $methods, $pattern, $controller, $name = null, array $options = [])
    {
        $this->methods = array_map('strtoupper', $methods);
        $this->pattern = $pattern;
        $this->name = $name;
        $this->controller = $controller;
        $this->options = $options;
    }