PHP Класс DI\Definition\EnvironmentVariableDefinition

Автор: James Harris ([email protected])
Наследование: implements CacheableDefinition
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( string $name, string $variableName, boolean $isOptional = false, mixed $defaultValue = null )
__toString ( )
getDefaultValue ( ) : mixed
getName ( ) : string
getScope ( )
getVariableName ( ) : string
isOptional ( ) : boolean
setScope ( string $scope )

Описание методов

__construct() публичный Метод

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

__toString() публичный Метод

public __toString ( )

getDefaultValue() публичный Метод

public getDefaultValue ( ) : mixed
Результат mixed The default value to use if the environment variable is optional and not provided

getName() публичный Метод

public getName ( ) : string
Результат string Entry name

getScope() публичный Метод

public getScope ( )

getVariableName() публичный Метод

public getVariableName ( ) : string
Результат string The name of the environment variable

isOptional() публичный Метод

public isOptional ( ) : boolean
Результат boolean Whether or not the environment variable definition is optional

setScope() публичный Метод

public setScope ( string $scope )
$scope string