Nexus API Reference

DispatchResult
in package

Read onlyYes
FinalYes
Tags
psalm-api

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

Properties

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
self

methodNotAllowed()

public static methodNotAllowed(array<int, string> $allowed) : self
Parameters
$allowed : array<int, string>
Return values
self

        
On this page

Search results