PHP Class Horde_Injector_Binder_AnnotatedSetters, horde

Author: Bob Mckee ([email protected])
Author: James Pepin ([email protected])
Author: Chuck Hagenbuch ([email protected])
Inheritance: implements Horde_Injector_Binder
Exibir arquivo Open project: horde/horde Class Usage Examples

Public Methods

Method Description
__construct ( Horde_Injector_Binder $binder, Horde_Injector_DependencyFinder $finder = null ) Constructor.
create ( Horde_Injector $injector )
equals ( Horde_Injector_Binder $otherBinder ) : boolean
getBinder ( ) : Horde_Injector_Binder

Private Methods

Method Description
_callSetters ( array $setters, Horde_Injector $injector, object $instance ) Call each ReflectionMethod in the $setters array, filling in its dependencies with the $injector.
_findAnnotatedSetters ( ReflectionClass $reflectionClass ) : array Find all public methods in $reflectionClass that are annotated with
_isSetterMethod ( ReflectionMethod $reflectionMethod ) Is a method a setter method, by the criteria we define (has a doc comment that includes @inject).

Method Details

__construct() public method

Constructor.
public __construct ( Horde_Injector_Binder $binder, Horde_Injector_DependencyFinder $finder = null )
$binder Horde_Injector_Binder
$finder Horde_Injector_DependencyFinder

create() public method

public create ( Horde_Injector $injector )
$injector Horde_Injector

equals() public method

public equals ( Horde_Injector_Binder $otherBinder ) : boolean
$otherBinder Horde_Injector_Binder
return boolean Equality.

getBinder() public method

public getBinder ( ) : Horde_Injector_Binder
return Horde_Injector_Binder