__construct()
addMethod()
addMethodParameter()
getClassSupertypes()
getClasses()
getInstantiator()
getMethodParameters()
getMethods()
hasClass()
hasMethod()
hasMethodParameters()
hasMethods()
setInstantiator()
setSupertypes()
$class
$instantiator
$methodParameters
$methods
$supertypes
Class definitions for a single class
__construct(string $class)
string
addMethod(string $method, mixed | bool | null $isRequired) : \Zend\Di\Definition\self
string
mixedboolnull
\Zend\Di\Definition\self
addMethodParameter($method, $parameterName, array $parameterInfo) : \Zend\Di\Definition\ClassDefinition
array
(keys: required, type)
getClassSupertypes(string $class) : string[]
string
string[]
getClasses() : string[]
string[]
getInstantiator(string $class) : string | array
string
string
array
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 );
string
string
array
getMethods(string $class) : string[]
string
string[]
hasClass(string $class) : bool
string
bool
hasMethod(string $class, string $method) : bool
string
string
bool
hasMethodParameters($class, $method) : bool
bool
hasMethods(string $class) : bool
string
bool
setInstantiator(null | \Callable | array | string $instantiator) : \Zend\Di\Definition\self
null\Callablearraystring
\Zend\Di\Definition\self
setSupertypes(array $supertypes) : \Zend\Di\Definition\self
string[]
\Zend\Di\Definition\self
$class : null | string
$instantiator : null | \Callable | array | string
$methodParameters : array
$methods : bool[]
$supertypes : string[]