addClass()
createClass()
createClassesFromArray()
getClassBuilder()
getClassSupertypes()
getClasses()
getInstantiator()
getMethodParameters()
getMethods()
hasClass()
hasMethod()
hasMethodParameters()
hasMethods()
setClassBuilder()
getClass()
$classes
$defaultClassBuilder
Class definitions based on a configuration array
addClass(\Zend\Di\Definition\Builder\PhpClass $phpClass) : \Zend\Di\Definition\BuilderDefinition
createClass(null | string $name) : \Zend\Di\Definition\Builder\PhpClass
This method is a factory that can be used in place of addClass().
nullstring
Optional name of class to assign
createClassesFromArray(array $builderData) : void
array
getClassBuilder() : string
This is primarily to allow developers to temporarily override the builder strategy.
string
getClassSupertypes(string $class) : string[]
getClasses() : string[]
string[]
getInstantiator(string $class) : 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
\Zend\Di\Exception\RuntimeException |
---|
array
getMethods(string $class) : string[]
hasClass(string $class) : bool
string
bool
hasMethod(string $class, string $method) : bool
hasMethodParameters($class, $method) : bool
bool
hasMethods(string $class) : bool
setClassBuilder(string $class) : \Zend\Di\Definition\BuilderDefinition
$defaultClassBuilder : string