Adamgoose\Routing\Annotations\Path::__construct PHP Method

__construct() public method

Create a new Route Path instance.
public __construct ( string $verb, string $domain, string $path, string $as, array $middleware = [], array $where = [] ) : void
$verb string
$domain string
$path string
$as string
$middleware array
$where array
return void
    public function __construct($verb, $domain, $path, $as, $middleware = [], $where = [])
    {
        $this->as = $as;
        $this->verb = $verb;
        $this->where = $where;
        $this->domain = $domain;
        $this->middleware = $middleware;
        $this->path = $path == '/' ? '/' : trim($path, '/');
    }