-
-
Notifications
You must be signed in to change notification settings - Fork 0
Environment
github-actions[bot] edited this page May 2, 2026
·
1 revision
Reads environment variables through PHP's native runtime.
- Full name:
\FastForward\DevTools\Environment\Environment - This class is marked as final and can't be subclassed
- This class implements:
\FastForward\DevTools\Environment\EnvironmentInterface - This class is a Final class
Reads an environment variable or the current environment map.
public get(string|null $name = null, string|null $default = null): array<string,string>|string|nullParameters:
| Parameter | Type | Description |
|---|---|---|
$name |
string|null | the environment variable name, or null to read the current environment map |
$default |
string|null | the value returned when the named variable is not defined |
Return Value:
the environment map, variable value, or default fallback