Request
Table of Contents
- $accept : string
- $authorization : string
- $body : Body
- $isSecured : bool
- $method : string
- $remoteAddress : string
- $uri : Uri
- __construct() : mixed
- Creates instance of Request class.
- getAccept() : string
- Returns request accept
- getAuthorization() : string
- Returns api key from request header
- getBody() : Body
- Returns requests body.
- getMethod() : string
- Returns request method
- getResource() : string
- Retruns request resource
- getUri() : Uri
- Returns requests URI
- setAccept() : void
- Sets accept format
- setMethod() : void
- Sets request method
Properties
$accept
private
string
$accept
$authorization
private
string
$authorization
$body
private
Body
$body
$isSecured
private
bool
$isSecured
$method
private
string
$method
$remoteAddress
private
string
$remoteAddress
$uri
private
Uri
$uri
Methods
__construct()
Creates instance of Request class.
public
__construct(bool $isSecured, string $method, Uri $uri, string $authorization, Body $body, string $remoteAddress, string $accept) : mixed
Parameters
- $isSecured : bool
- $method : string
- $uri : Uri
- $authorization : string
- $body : Body
- $remoteAddress : string
- $accept : string
Return values
mixed —getAccept()
Returns request accept
public
getAccept() : string
Return values
string —getAuthorization()
Returns api key from request header
public
getAuthorization() : string
Return values
string —getBody()
Returns requests body.
public
getBody() : Body
Return values
Body —getMethod()
Returns request method
public
getMethod() : string
Return values
string —getResource()
Retruns request resource
public
getResource() : string
Return values
string —getUri()
Returns requests URI
public
getUri() : Uri
Return values
Uri —setAccept()
Sets accept format
private
setAccept(string $accept) : void
Parameters
- $accept : string
Return values
void —setMethod()
Sets request method
private
setMethod(string $method) : void
Parameters
- $method : string