PHP Class DI\Definition\ValueDefinition

Author: Matthieu Napoli ([email protected])
Inheritance: implements DI\Definition\Definition, implements DI\Definition\SelfResolvingDefinition
Show file Open project: mnapoli/php-di

Public Methods

Method Description
__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 )

Method Details

__construct() public method

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

__toString() public method

public __toString ( )

getName() public method

public getName ( ) : string
return string Entry name

getScope() public method

public getScope ( )

getValue() public method

public getValue ( ) : mixed
return mixed

isResolvable() public method

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

resolve() public method

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