HttpContextReaderServerData
extends HttpContextReaderServerData_parent
in package
Table of Contents
- getServerData() : array<string|int, mixed>
- Returns an array which represents the global $_SERVER variable of the current http context.
Methods
getServerData()
Returns an array which represents the global $_SERVER variable of the current http context.
public
getServerData(HttpContextInterface $httpContext) : array<string|int, mixed>
Parameters
- $httpContext : HttpContextInterface
-
Object which holds information about the current http context.
Return values
array<string|int, mixed> —Array which hold information equal to the global $_SERVER variable in an object oriented layer.