PHP Class DI\Definition\ValueDefinition

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

Méthodes publiques

Méthode 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 méthode

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

__toString() public méthode

public __toString ( )

getName() public méthode

public getName ( ) : string
Résultat string Entry name

getScope() public méthode

public getScope ( )

getValue() public méthode

public getValue ( ) : mixed
Résultat mixed

isResolvable() public méthode

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

resolve() public méthode

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