final class ServerBag (View source)

Methods

__construct(array $items = [])
array
all()
array
mixed
get(string $key, mixed $default = null)
mixed
string
host(string $default = 'localhost')
string
string
scheme()
string
string|null
ip(string|null $default = null)
string|null

Details

__construct

__construct(array $items = [])

No description

Parameters

array $items

all

array all()

No description

Return Value

array

get

mixed get(string $key, mixed $default = null)

No description

Parameters

string $key
mixed $default

Return Value

mixed

host

string host(string $default = 'localhost')

No description

Parameters

string $default

Return Value

string

scheme

string scheme()

No description

Return Value

string

ip

string|null ip(string|null $default = null)

No description

Parameters

string|null $default

Return Value

string|null