Method | Description | |
---|---|---|
__construct ( string $name, callable $factory, string | null $scope = null, array $parameters = [] ) | ||
__toString ( ) | ||
getCallable ( ) : callable | ||
getName ( ) : string | ||
getParameters ( ) : array | ||
getScope ( ) | Default scope is singleton: the callable is called once and the result is shared. |
public getCallable ( ) : callable | ||
return | callable | Callable that returns the value associated to the entry name. |
public getParameters ( ) : array | ||
return | array | Array containing the parameters to be passed to the callable, indexed by name. |