PHP 클래스 DI\Definition\EnvironmentVariableDefinition

저자: James Harris ([email protected])
상속: implements CacheableDefinition
파일 보기 프로젝트 열기: mnapoli/php-di

공개 메소드들

메소드 설명
__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