Adamgoose\Routing\Annotations\Path::__construct PHP Метод

__construct() публичный Метод

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
Результат 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, '/');
    }