AbstractDependencyType
in package
An abstract class for dependency types.
Dependency types are instances of a dependency used by the Dependency Injection Container for storing dependencies to invoke as they are needed.
Tags
Table of Contents
- $callable_or_value : mixed
- Holds a callable or value provided for this type.
- __construct() : mixed
- Constructor
- get() : void
- Retrieves the value stored internally for this DependencyType
- resolve_value() : mixed
- Resolver for the internal dependency value.
Properties
$callable_or_value
Holds a callable or value provided for this type.
private
mixed
$callable_or_value
Methods
__construct()
Constructor
public
__construct(mixed $callable_or_value) : mixed
Parameters
- $callable_or_value : mixed
-
A callable or value for the dependency type instance.
Return values
mixed —get()
Retrieves the value stored internally for this DependencyType
public
abstract get(Container $container) : void
Parameters
- $container : Container
-
The Dependency Injection Container.
Return values
void —resolve_value()
Resolver for the internal dependency value.
protected
resolve_value(Container $container) : mixed
Parameters
- $container : Container
-
The Dependency Injection Container.