PHP Class DI\Definition\StringDefinition

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

Public Methods

Method Description
__construct ( string $name, string $expression )
__toString ( )
getExpression ( ) : string
getName ( ) : string
getScope ( )
isResolvable ( Interop\Container\ContainerInterface $container )
resolve ( Interop\Container\ContainerInterface $container )

Method Details

__construct() public method

public __construct ( string $name, string $expression )
$name string Entry name
$expression string

__toString() public method

public __toString ( )

getExpression() public method

public getExpression ( ) : string
return string

getName() public method

public getName ( ) : string
return string Entry name

getScope() public method

public getScope ( )

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