__construct()
addMethod()
getAlias()
getClass()
getConstructor()
getMethods()
getName()
getParams()
isShared()
setAlias()
setClass()
setMethods()
setShared()
$alias
$class
$constructor
$methods
$params
$shared
Container for methods and parameters used by by Di to create a particular instance
__construct(string | null $class, string | null $alias, mixed $constructor, array $params)
stringnull
stringnull
mixed
array
getAlias() : string | null
string
null
getClass() : string | null
Null if class is unclear (such as when the instance is produced by a callback)
string
null
getConstructor() : mixed
mixed
constructor method name or callable responsible for generating instancegetMethods() : array
Each returned element has form array('method' => 'methodName', 'params' => array( ... ordered list of call parameters ... ), where every call parameter that is a recursively fetched instance is a GeneratorInstance itself
array
getName() : string | null
string
null
getParams() : array
Each parameter that refers to another instance fetched recursively is a GeneratorInstance itself
array
isShared() : bool
bool
setClass(string $class) : \Zend\Di\ServiceLocator\GeneratorInstance
In the case of an instance created via a callback, we need to set the class name after creating the generator instance.
string
setShared(bool $shared)
bool
$alias : string | null
$class : string | null
$constructor : mixed
$methods : array
$params : array
$shared : bool