-
-
Notifications
You must be signed in to change notification settings - Fork 0
Environment
github-actions edited this page Apr 24, 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.
public get(string $name, string|null $default = null): string|nullParameters:
| Parameter | Type | Description |
|---|---|---|
$name |
string | the environment variable name |
$default |
string|null | the value returned when the variable is not defined |
Return Value:
the variable value, or the default when it is not defined