Class definitions based on runtime reflection

 Methods

Constructor

__construct(\Zend\Di\Definition\IntrospectionStrategy $introspectionStrategy, array $explicitClasses) 

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) : string[]

Parameters

$class

string

Returns

string[]

Retrieves classes in this definition

getClasses() : string[]

Returns

string[]

getInstantiator()

getInstantiator(string $class) : string | array

Parameters

$class

string

Returns

stringarray

getIntrospectionStrategy()

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

getMethodParameters() return information about a methods parameters.

getMethodParameters(string $class, string $method) : array

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 );

Parameters

$class

string

$method

string

Returns

array

Return an array of the injection methods for a given class

getMethods(string $class) : string[]

Parameters

$class

string

Returns

string[]

Return whether the class exists in this definition

hasClass(string $class) : bool

Parameters

$class

string

Returns

bool

hasMethod()

hasMethod(string $class, string $method) : bool

Parameters

$class

string

$method

string

Returns

bool

hasMethodParameters()

hasMethodParameters($class, $method) : bool

Parameters

$class

$method

Returns

bool

Return if there are injection methods

hasMethods(string $class) : bool

Parameters

$class

string

Returns

bool

Set explicit classes

setExplicitClasses(array $explicitClasses) 

Parameters

$explicitClasses

array

setIntrospectionStrategy()

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

Parameters

hasProcessedClass()

hasProcessedClass(string $class) 

Parameters

$class

string

processClass()

processClass(string $class, bool $forceLoad) 

Parameters

$class

string

$forceLoad

bool

processParams()

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

 Properties

 

$classes

$classes : array

 

$explicitLookups

$explicitLookups : bool

 

$injectionMethods

$injectionMethods : array

 

$introspectionStrategy

$introspectionStrategy : \Zend\Di\Definition\IntrospectionStrategy