Implementation
in package
implements
Binder
Tags
Interfaces, Classes, Traits and Enums
- Binder
- Describes a binding class that is able to create concrete object instances.
Table of Contents
- $dependencyFinder : DependencyFinder
- $implementation : mixed
- __construct() : mixed
- create() : mixed
- Create an instance.
- equals() : bool
- Determine if one binder equals another binder
- getImplementation() : mixed
- getInstance() : mixed
- validateImplementation() : void
Properties
$dependencyFinder
private
DependencyFinder
$dependencyFinder
$implementation
private
mixed
$implementation
Methods
__construct()
public
__construct(mixed $implementation[, DependencyFinder $finder = null ]) : mixed
Parameters
- $implementation : mixed
- $finder : DependencyFinder = null
Return values
mixed —create()
Create an instance.
public
create(Injector $injector) : mixed
Parameters
- $injector : Injector
Return values
mixed —The concrete instance.
equals()
Determine if one binder equals another binder
public
equals(Binder $otherBinder) : bool
Parameters
- $otherBinder : Binder
Return values
bool —Equality.
getImplementation()
public
getImplementation() : mixed
Return values
mixed —getInstance()
protected
getInstance(Injector $injector, ReflectionClass $class) : mixed
Parameters
- $injector : Injector
- $class : ReflectionClass
Return values
mixed —validateImplementation()
protected
validateImplementation(ReflectionClass $reflectionClass) : void
Parameters
- $reflectionClass : ReflectionClass