Container for methods and parameters used by by Di to create a particular instance
@param string|null $class
| Parameters: |
|
|---|
Retrieves the best available name for this instance (instance alias first then class name)
| Return type: | string|null |
|---|
Class of the instance. Null if class is unclear (such as when the instance is produced by a callback)
| Return type: | string|null |
|---|
Set class name
In the case of an instance created via a callback, we need to set the class name after creating the generator instance.
| Parameters: | string – |
|---|---|
| Return type: | GeneratorInstance |
Set instance alias
| Parameters: | string – |
|---|---|
| Return type: | GeneratorInstance |
Get instantiator
| Return type: | mixed constructor method name or callable responsible for generating instance |
|---|
Parameters passed to the instantiator as an ordered list of parameters. Each parameter that refers to another instance fetched recursively is a GeneratorInstance itself
| Return type: | array |
|---|
Add a method called on the instance
| Parameters: | $method – |
|---|---|
| Return type: | GeneratorInstance |
Retrieves a list of methods that are called on the instance in their call order. 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
| Return type: | array |
|---|