DispatchResult
in package
Read onlyYes
FinalYes
Tags
Table of Contents
Constants
- FOUND = 1
- METHOD_NOT_ALLOWED = 3
- NOT_FOUND = 2
Properties
- $allowedMethods : array<string|int, mixed>
- $pathParams : array<string|int, mixed>
- $route : Route|null
- $status : int
Methods
- __construct() : mixed
- found() : self
- methodNotAllowed() : self
- notFound() : self
Constants
FOUND
public
mixed
FOUND
= 1
METHOD_NOT_ALLOWED
public
mixed
METHOD_NOT_ALLOWED
= 3
NOT_FOUND
public
mixed
NOT_FOUND
= 2
Properties
$allowedMethods
public
array<string|int, mixed>
$allowedMethods
$pathParams
public
array<string|int, mixed>
$pathParams
$route
public
Route|null
$route
$status
public
int
$status
Methods
__construct()
public
__construct(self::FOUND|self::NOT_FOUND|self::METHOD_NOT_ALLOWED $status, Route|null $route, array<string, string> $pathParams, array<int, string> $allowedMethods) : mixed
Parameters
- $status : self::FOUND|self::NOT_FOUND|self::METHOD_NOT_ALLOWED
- $route : Route|null
- $pathParams : array<string, string>
- $allowedMethods : array<int, string>
found()
public
static found(Route $route, array<string, string> $params) : self
Parameters
- $route : Route
- $params : array<string, string>
Return values
selfmethodNotAllowed()
public
static methodNotAllowed(array<int, string> $allowed) : self
Parameters
- $allowed : array<int, string>
Return values
selfnotFound()
public
static notFound() : self