API / Minn\Http / Matched

Matched final readonly class

Minn\Http\Matched · public/minn/src/Minn/Http/Matched.php · 15 lines

A route the router matched to a request and whose policy it judged: the route, the object and method that answer it, the pattern's captures, and every method the same handler answers on that pattern (the reference lists POST, PUT and PATCH together for one edit handler).

Uses 2

Constants and properties

propreadonly Minn\Http\Route $route

Promoted from the constructor.

propreadonly object $handler

Promoted from the constructor.

propreadonly string $method

Promoted from the constructor.

propreadonly array $captures

Promoted from the constructor.

propreadonly array $methods

Promoted from the constructor.

Public

new__construct(Minn\Http\Route $route, object $handler, string $method, array $captures, array $methods)#
$capturesarray<string, string>
$methodslist<string>