Neuron-PHP

Request
in package

Table of Contents

Properties

$_get  : mixed
$_ipResolver  : IIpResolver|null
$_path  : mixed
$_post  : mixed
$_requestMethod  : mixed
$_route  : mixed
$_server  : mixed
$_sourceIp  : string|null

Methods

__construct()  : mixed
Request constructor.
getMethod()  : mixed
getPath()  : mixed
getPostParam()  : mixed
getRequest()  : mixed
getRoute()  : RouteMap
getRouteParam()  : mixed
getSourceIp()  : string
Get the source IP address of the request.
getUrlParam()  : mixed

Properties

$_requestMethod

private mixed $_requestMethod

$_sourceIp

private string|null $_sourceIp = null

Methods

__construct()

Request constructor.

public __construct(RouteMap $route, mixed $method[, IIpResolver|null $ipResolver = null ]) : mixed
Parameters
$route : RouteMap
$method : mixed
$ipResolver : IIpResolver|null = null

Optional IP resolver

getMethod()

public getMethod() : mixed

getPostParam()

public getPostParam(mixed $name) : mixed
Parameters
$name : mixed

getRequest()

public getRequest(mixed $name) : mixed
Parameters
$name : mixed

getRouteParam()

public getRouteParam(mixed $name) : mixed
Parameters
$name : mixed

getSourceIp()

Get the source IP address of the request.

public getSourceIp() : string

Uses the configured IP resolver to determine the client's IP address, falling back to DefaultIpResolver if none is configured.

Return values
string

The client IP address

getUrlParam()

public getUrlParam(mixed $name) : mixed
Parameters
$name : mixed

        
On this page

Search results