PHP 클래스 DI\Definition\ValueDefinition

저자: Matthieu Napoli ([email protected])
상속: implements DI\Definition\Definition, implements DI\Definition\SelfResolvingDefinition
파일 보기 프로젝트 열기: mnapoli/php-di

공개 메소드들

메소드 설명
__construct ( string $name, mixed $value )
__toString ( )
getName ( ) : string
getScope ( ) A value definition is like a constant, there is nothing to compute, the value is the same for everyone.
getValue ( ) : mixed
isResolvable ( Interop\Container\ContainerInterface $container )
resolve ( Interop\Container\ContainerInterface $container )

메소드 상세

__construct() 공개 메소드

public __construct ( string $name, mixed $value )
$name string Entry name
$value mixed

__toString() 공개 메소드

public __toString ( )

getName() 공개 메소드

public getName ( ) : string
리턴 string Entry name

getScope() 공개 메소드

public getScope ( )

getValue() 공개 메소드

public getValue ( ) : mixed
리턴 mixed

isResolvable() 공개 메소드

public isResolvable ( Interop\Container\ContainerInterface $container )
$container Interop\Container\ContainerInterface

resolve() 공개 메소드

public resolve ( Interop\Container\ContainerInterface $container )
$container Interop\Container\ContainerInterface