Object node in XML file with Dependency Injection rules.
It represents created object.
package |
Default |
---|
__construct(string $className, array $parameters = array(), string|null $alias = null, $alwaysNew = false)
Throws |
|
---|
string
Class name of the object
array
Array of Param object which are used during creation the object
string|null
A short name of the object
getAlias() : string|null
string|null
getAlwaysNew() : boolean
boolean
getClass() : string
string
getParams() : array
array
getParamsId(mixed $input) : string
mixed
Input data
string
getParamVal(string $name) : mixed
string
Name of the parameter
mixed
getStoredInstance(array $params) : object|null
array
An array of params
object|null
getXml() : string
string
setParamVal(string $name, mixed $value) : object
string
A name of the parameter
mixed
A value to set
object
setStoredInstance(array $params, object $instance) : object
array
Params which were used to create the instance
object
An instance of a object which is the instance of the class represents by the Object
object
className : string
var |
Class name of the object |
---|
string
parameters : array
var |
Array of Param object which are used during creation the object |
---|
array
namedParameters : array
var |
Array of named prameters which contain Param objects |
---|
array
alias : string|null
var |
A short name of the object. It's an alias on the main class name |
---|
string|null
alwaysNew : boolean
var |
A flag if the instance should be always new |
---|
boolean
storedInstance : array
var |
Array of stored instances of the object for different sets of params used for an initialization |
---|
array