PHP Class Consolidation\Cgr\Env

Show file Open project: consolidation/cgr

Protected Properties

Property Type Description
$env

Public Methods

Method Description
__construct ( $env )
apply ( ) : Env Apply a set of environment variables; return the original value of any value that is set, to avoid polluting the environment.

Protected Methods

Method Description
setEnvValue ( string $key, mixed $value ) Set or un-set one environment variable

Method Details

__construct() public method

public __construct ( $env )

apply() public method

Apply a set of environment variables; return the original value of any value that is set, to avoid polluting the environment.
public apply ( ) : Env
return Env

setEnvValue() protected static method

Set or un-set one environment variable
protected static setEnvValue ( string $key, mixed $value )
$key string The environment variable to set or unset
$value mixed THe value to set the variable to, or false to unset.

Property Details

$env protected property

protected $env