Method | Description | |
---|---|---|
__construct ( string $name, string $variableName, boolean $isOptional = false, mixed $defaultValue = null ) | ||
__toString ( ) | ||
getDefaultValue ( ) : mixed | ||
getName ( ) : string | ||
getScope ( ) | ||
getVariableName ( ) : string | ||
isOptional ( ) : boolean | ||
setScope ( string $scope ) |
public __construct ( string $name, string $variableName, boolean $isOptional = false, mixed $defaultValue = null ) | ||
$name | string | Entry name |
$variableName | string | The name of the environment variable |
$isOptional | boolean | Whether or not the environment variable definition is optional |
$defaultValue | mixed | The default value to use if the environment variable is optional and not provided |
public getDefaultValue ( ) : mixed | ||
return | mixed | The default value to use if the environment variable is optional and not provided |
public getVariableName ( ) : string | ||
return | string | The name of the environment variable |
public isOptional ( ) : boolean | ||
return | boolean | Whether or not the environment variable definition is optional |