174. Class

174.1. Zend\Di\Definition\Builder\PhpClass

Object containing definitions for a single class

174.1.1. Methods

174.1.1.1. setName

setName()

Set name

Parameters:string
Return type:PhpClass

174.1.1.2. getName

getName()

Get name

Return type:string

174.1.1.3. setInstantiator

setInstantiator()

@param string|Callable|array $instantiator

Return type:PhpClass

174.1.1.4. getInstantiator

getInstantiator()

@return array|Callable|string

174.1.1.5. addSuperType

addSuperType()

@param string $superType

Return type:PhpClass

174.1.1.6. getSuperTypes

getSuperTypes()

Get super types

Return type:array

174.1.1.7. addInjectionMethod

addInjectionMethod()

Add injection method

Parameters:InjectionMethod
Return type:PhpClass

174.1.1.8. createInjectionMethod

createInjectionMethod()

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.

Parameters:null|string
Return type:InjectionMethod

174.1.1.9. setMethodBuilder

setMethodBuilder()

Override which class will be used by {@link createInjectionMethod()}

Parameters:string
Return type:PhpClass

174.1.1.10. getMethodBuilder

getMethodBuilder()

Determine what class will be used by {@link createInjectionMethod()}

Mainly to provide the ability to temporarily override the class used.

Return type:string

174.1.1.11. getInjectionMethods

getInjectionMethods()

@return InjectionMethod[]