Request
extends Message
in package
implements
ISingleton, IRequest
Uses
TSingleton, TRequest
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $body : string|null
- The body of the message. String if it has been set, null otherwise
- $headers : array<string|int, mixed>
- $instance : ISingleton
- $params : stdClass
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- __toString() : string
- extends() : bool
- getBody() : string
- getHeader() : string|null
- Gets a particular header value by a provided header name
- getHeaders() : array<string|int, mixed>
- getInstance() : ISingleton
- getParameter() : mixed
- getParameters() : array<string|int, mixed>
- getReflection() : ReflectionClass
- init() : mixed
- setBody() : mixed
- setHeader() : mixed
Properties
$body
The body of the message. String if it has been set, null otherwise
protected
string|null
$body
= ''
$headers
protected
array<string|int, mixed>
$headers
= []
$instance
protected
static ISingleton
$instance
$params
protected
stdClass
$params
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct() : mixed
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
__toString()
public
__toString() : string
Return values
stringextends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetBody()
public
getBody() : string
Return values
stringgetHeader()
Gets a particular header value by a provided header name
public
getHeader(string $header) : string|null
Parameters
- $header : string
Return values
string|nullgetHeaders()
public
getHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>getInstance()
public
static getInstance() : ISingleton
Return values
ISingletongetParameter()
public
getParameter(string $parameter[, mixed $default = null ]) : mixed
Parameters
- $parameter : string
- $default : mixed = null
getParameters()
public
getParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>getReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassinit()
public
init() : mixed
setBody()
public
setBody(string $body) : mixed
Parameters
- $body : string
setHeader()
public
setHeader(string $name, string $value) : mixed
Parameters
- $name : string
- $value : string