EnvironmentInterface
in
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
stringenvBool()
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
boolenvFloat()
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
floatenvInt()
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
intenvironments()
Retrieve all of environment variables.
public
environments() : array<string, string>