Class definitions based on runtime reflection

package Default

 Methods

Constructor

__construct(null|\Zend\Di\Definition\IntrospectionStrategy $introspectionStrategy = null, array|null $explicitClasses = null

Parameters

$introspectionStrategy

null\Zend\Di\Definition\IntrospectionStrategy

$explicitClasses

arraynull

forceLoadClass()

forceLoadClass(string $class) 

Parameters

$class

string

Return the supertypes for this class

getClassSupertypes(string $class) 
inherited_from \Zend\Di\Definition\DefinitionInterface::getClassSupertypes()

Parameters

$class

Retrieves classes in this definition

getClasses() 
inherited_from \Zend\Di\Definition\DefinitionInterface::getClasses()

getInstantiator()

getInstantiator(string $class) 
inherited_from \Zend\Di\Definition\DefinitionInterface::getInstantiator()

Parameters

$class

getIntrospectionStrategy()

getIntrospectionStrategy() : \Zend\Di\Definition\IntrospectionStrategy

Returns

\Zend\Di\Definition\IntrospectionStrategy

getMethodParameters() return information about a methods parameters.

getMethodParameters(string $class, string $method) 

Should return an ordered named array of parameters for a given method. Each value should be an array, of length 4 with the following information:

array( 0, // string|null: Type Name (if it exists) 1, // bool: whether this param is required 2, // string: fully qualified path to this parameter 3, // mixed: default value );

inherited_from \Zend\Di\Definition\DefinitionInterface::getMethodParameters()

Parameters

$class

$method

Return an array of the injection methods for a given class

getMethods(string $class) 
inherited_from \Zend\Di\Definition\DefinitionInterface::getMethods()

Parameters

$class

Return whether the class exists in this definition

hasClass(string $class) 
inherited_from \Zend\Di\Definition\DefinitionInterface::hasClass()

Parameters

$class

hasMethod()

hasMethod(string $class, string $method) 
inherited_from \Zend\Di\Definition\DefinitionInterface::hasMethod()

Parameters

$class

$method

hasMethodParameters()

hasMethodParameters($class, $method) 
inherited_from \Zend\Di\Definition\DefinitionInterface::hasMethodParameters()

Parameters

$class

$method

Return if there are injection methods

hasMethods(string $class) 
inherited_from \Zend\Di\Definition\DefinitionInterface::hasMethods()

Parameters

$class

Set explicit classes

setExplicitClasses(array $explicitClasses) 

Parameters

$explicitClasses

array

setIntrospectionStrategy()

setIntrospectionStrategy(\Zend\Di\Definition\IntrospectionStrategy $introspectionStrategy) : void

Parameters

$introspectionStrategy

\Zend\Di\Definition\IntrospectionStrategy

processClass()

processClass(string $class, boolean $forceLoad = false

Parameters

$class

string

$forceLoad

boolean

processParams()

processParams(array $def, \Zend\Code\Reflection\ClassReflection $rClass, \Zend\Code\Reflection\MethodReflection $rMethod) 

Parameters

$def

array

$rClass

\Zend\Code\Reflection\ClassReflection

$rMethod

\Zend\Code\Reflection\MethodReflection

 Properties

 

$classes

$classes : array

Default

array()
 

$explicitLookups

$explicitLookups : boolean

Default

false
 

$injectionMethods

$injectionMethods : array

Default

array()
 

$introspectionStrategy

$introspectionStrategy : \Zend\Di\Definition\IntrospectionStrategy

Default

null
 

$processedClass

$processedClass : array

Default

array()