final class Environment
Public API: explicitly declared with @visibility public.

Validates and retains native application inputs at the configuration boundary.

Keeping an explicit environment valuedoctest
(new \Deriver\Configuration\Environment(['APP_ENV' => 'test']))->values // => ['APP_ENV' => 'test']

Properties§

public array<string, scalar|array<array-key, mixed>|null> $values

Methods§

public function __construct(array<array-key, mixed> $input)

Parameters

$inputarray<array-key, mixed>Untrusted settings supplied by YAML or PHP

Throws

ConfigurationException If a name or nested value is not a native input
Calls 7

Test cases 3§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Type declarations 1