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 |
|
|---|
stringClass name of the object
arrayArray of Param object which are used during creation the object
string|nullA short name of the object
getAlias() : string|null
string|null
getAlwaysNew() : boolean
boolean
getClass() : string
string
getParams() : array
array
getParamsId(mixed $input) : string
mixedInput data
string
getParamVal(string $name) : mixed
stringName of the parameter
mixed
getStoredInstance(array $params) : object|null
arrayAn array of params
object|null
getXml() : string
string
setParamVal(string $name, mixed $value) : object
stringA name of the parameter
mixedA value to set
object
setStoredInstance(array $params, object $instance) : object
arrayParams which were used to create the instance
objectAn 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