Zend Framework
3.0
|
Object containing definitions for a single class. More...
Public Member Functions | |
setName ($name) | |
Set name. | |
getName () | |
Get name. | |
setInstantiator ($instantiator) | |
getInstantiator () | |
addSuperType ($superType) | |
getSuperTypes () | |
Get super types. | |
addInjectionMethod (InjectionMethod $injectionMethod) | |
Add injection method. | |
createInjectionMethod ($name=null) | |
Create and register an injection method. | |
setMethodBuilder ($class) | |
Override which class will be used by createInjectionMethod(). | |
getMethodBuilder () | |
Determine what class will be used by createInjectionMethod(). | |
getInjectionMethods () | |
Protected Attributes | |
$defaultMethodBuilder = 'Zend\Di\Definition\Builder\InjectionMethod' | |
$name = null | |
$instantiator = '__construct' | |
$injectionMethods = [] | |
$superTypes = [] | |
Object containing definitions for a single class.
addInjectionMethod | ( | InjectionMethod | $injectionMethod | ) |
addSuperType | ( | $superType | ) |
string | $superType |
createInjectionMethod | ( | $name = null | ) |
Create and register an injection method.
Optionally takes the method name.
This method may be used in lieu of addInjectionMethod() in order to provide a more fluent interface for building classes with injection methods.
null | string | $name |
getInjectionMethods | ( | ) |
getInstantiator | ( | ) |
getMethodBuilder | ( | ) |
Determine what class will be used by createInjectionMethod().
Mainly to provide the ability to temporarily override the class used.
getName | ( | ) |
Get name.
getSuperTypes | ( | ) |
Get super types.
setInstantiator | ( | $instantiator | ) |
string | \Callable | array | $instantiator |
setMethodBuilder | ( | $class | ) |
Override which class will be used by createInjectionMethod().
string | $class |
setName | ( | $name | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |