RequestParams
in package
implements
RequestParamsInterface
Request params fetcher
Interfaces, Classes and Traits
- RequestParamsInterface
- Request params fetcher
Table of Contents
- $router : Router|null
- Router of the transport
- __construct() : mixed
- Constructor
- getRouter() : Router
- Method returns router
- wasSubmitted() : bool
- Method validates was the parameter submitted
Properties
$router
Router of the transport
private
Router|null
$router
= null
Methods
__construct()
Constructor
public
__construct(Router|null &$router) : mixed
Parameters
- $router : Router|null
-
Router object
Return values
mixed —getRouter()
Method returns router
public
getRouter() : Router
Return values
Router —wasSubmitted()
Method validates was the parameter submitted
public
wasSubmitted(string $param) : bool
Parameters
- $param : string
-
parameter name
Tags
Return values
bool —true if the parameter was submitted