PHP Interface Horde_Injector_Scope, horde

Injectors implement a Chain of Responsibility pattern. This is the required interface for injectors to pass on responsibility to parent objects in the chain.
Mostrar archivo Open project: horde/horde Interface Usage Examples

Public Methods

Method Description
getBinder ( string $interface ) : Horde_Injector_Binder | null Returns the Horde_Injector_Binder object mapped to the request interface if such a mapping exists
getInstance ( string $interface ) : object Returns instance of requested object if proper configuration has been provided.

Method Details

getBinder() public method

Returns the Horde_Injector_Binder object mapped to the request interface if such a mapping exists
public getBinder ( string $interface ) : Horde_Injector_Binder | null
$interface string Interface name of object whose binding if being retrieved.
return Horde_Injector_Binder | null

getInstance() public method

Returns instance of requested object if proper configuration has been provided.
public getInstance ( string $interface ) : object
$interface string Interface name of object which is being requested.
return object