Pneuma Framework

EnvironmentInterface

Describes Environment interface.

Table of Contents

Methods

env()  : string
Retrieve string value of environment variables.
envBool()  : bool
Retrieve boolean value of environment variables.
envFloat()  : float
Retrieve float value of environment variables.
envInt()  : int
Retrieve integer value of environment variables.
environments()  : array<string, string>
Retrieve all of environment variables.

Methods

env()

Retrieve string value of environment variables.

public env(string $name[, string $default = '' ]) : string
Parameters
$name : string

Environment name

$default : string = ''

Default value

Return values
string

envBool()

Retrieve boolean value of environment variables.

public envBool(string $name[, bool $default = false ]) : bool
Parameters
$name : string

Environment name

$default : bool = false

Default value

Return values
bool

envFloat()

Retrieve float value of environment variables.

public envFloat(string $name[, float $default = 0 ]) : float
Parameters
$name : string

Environment name

$default : float = 0

Default value

Return values
float

envInt()

Retrieve integer value of environment variables.

public envInt(string $name[, int $default = 0 ]) : int
Parameters
$name : string

Environment name

$default : int = 0

Default value

Return values
int

environments()

Retrieve all of environment variables.

public environments() : array<string, string>
Return values
array<string, string>

        
On this page

Search results