Property | Type | Description | |
---|---|---|---|
$arguments | array | Arguments of the constructor detected by reflection | |
$autowiring | integer | Mode of the autowiring feature. One of the AUTOWIRING_MODE_* constants | |
$className | string | Name of the class the object is based on | |
$configurationSourceHint | string | Information about where this configuration has been created. Used in error messages to make debugging easier. | |
$factoryMethodName | string | Name of the factory method. Only used if $factoryObjectName is set. | |
$factoryObjectName | string | If set, specifies the factory object name used to create this object | |
$lifecycleInitializationMethodName | string | Name of the method to call during the initialization of the object (after dependencies are injected) | |
$lifecycleShutdownMethodName | string | Name of the method to call during the shutdown of the framework | |
$objectName | string | Name of the object | |
$packageKey | string | Key of the package the specified object is part of | |
$properties | array | Array of properties which are injected into the object | |
$scope | string |
Method | Description | |
---|---|---|
__construct ( string $objectName, string $className = null ) | The constructor | |
getArguments ( ) : array |
Returns a sorted array of constructor arguments indexed by position (starting with "1") | |
getAutowiring ( ) : integer | Returns the autowiring mode for the configured object | |
getClassName ( ) : string | Returns the class name | |
getConfigurationSourceHint ( ) : string | Returns some information (if any) about where this configuration has been created. | |
getFactoryMethodName ( ) : string | Returns the factory method name | |
getFactoryObjectName ( ) : string | Returns the class name of the factory for this object, if any | |
getLifecycleInitializationMethodName ( ) : string | Returns the name of the lifecycle initialization method for this object | |
getLifecycleShutdownMethodName ( ) : string | Returns the name of the lifecycle shutdown method for this object | |
getObjectName ( ) : string | Returns the object name | |
getPackageKey ( ) : string | Returns the package key | |
getProperties ( ) : array |
Returns the currently set injection properties of the object | |
getScope ( ) : string | Returns the scope for this object | |
isCreatedByFactory ( ) : boolean | Returns true if factoryObjectName and factoryMethodName are defined. | |
setArgument ( |
Setter function for a single constructor argument | |
setArguments ( array $arguments ) : void | Setter function for injection constructor arguments. If an empty array is passed to this method, all (possibly) defined constructor arguments are removed from the configuration. | |
setAutowiring ( integer $autowiring ) : void | Setter function for property "autowiring" | |
setClassName ( string $className ) : void | Setter function for property "className" | |
setConfigurationSourceHint ( string $hint ) : void | Sets some information (hint) about where this configuration has been created. | |
setFactoryMethodName ( string $methodName ) : void | Sets the name of the factory method | |
setFactoryObjectName ( string $objectName ) : void | Sets the class name of a factory which is in charge of instantiating this object | |
setLifecycleInitializationMethodName ( string $lifecycleInitializationMethodName ) : void | Setter function for property "lifecycleInitializationMethodName" | |
setLifecycleShutdownMethodName ( string $lifecycleShutdownMethodName ) : void | Setter function for property "lifecycleShutdownMethodName" | |
setObjectName ( $objectName ) : void | Sets the object name | |
setPackageKey ( string $packageKey ) : void | Sets the package key | |
setProperties ( array $properties ) : void | Setter function for injection properties. If an empty array is passed to this method, all (possibly) defined properties are removed from the configuration. | |
setProperty ( ConfigurationProperty $property ) : void | Setter function for a single injection property | |
setScope ( integer $scope ) : void | Setter function for property "scope" |
public __construct ( string $objectName, string $className = null ) | ||
$objectName | string | The unique identifier of the object |
$className | string | Name of the class which provides the functionality of this object |
public getArguments ( ) : array |
||
return | array |
public getAutowiring ( ) : integer | ||
return | integer | Value of one of the AUTOWIRING_MODE_* constants |
public getClassName ( ) : string | ||
return | string | Name of the implementing class of this object |
public getConfigurationSourceHint ( ) : string | ||
return | string | The hint - e.g. the filename of the configuration file |
public getFactoryMethodName ( ) : string | ||
return | string | The factory method name |
public getFactoryObjectName ( ) : string | ||
return | string | The factory class name |
public getLifecycleInitializationMethodName ( ) : string | ||
return | string | The name of the initialization method |
public getLifecycleShutdownMethodName ( ) : string | ||
return | string | The name of the shutdown method |
public getObjectName ( ) : string | ||
return | string | object name |
public getPackageKey ( ) : string | ||
return | string | Key of the package this object is part of |
public getProperties ( ) : array |
||
return | array |
public isCreatedByFactory ( ) : boolean | ||
return | boolean |
public setArgument ( |
||
$argument | The argument | |
return | void |
public setArguments ( array $arguments ) : void | ||
$arguments | array | |
return | void |
public setAutowiring ( integer $autowiring ) : void | ||
$autowiring | integer | One of the AUTOWIRING_MODE_* constants |
return | void |
public setClassName ( string $className ) : void | ||
$className | string | Name of the class which provides the functionality for this object |
return | void |
public setConfigurationSourceHint ( string $hint ) : void | ||
$hint | string | The hint - e.g. the filename of the configuration file |
return | void |
public setFactoryMethodName ( string $methodName ) : void | ||
$methodName | string | The factory method name |
return | void |
public setFactoryObjectName ( string $objectName ) : void | ||
$objectName | string | Valid object name of a factory |
return | void |
public setLifecycleInitializationMethodName ( string $lifecycleInitializationMethodName ) : void | ||
$lifecycleInitializationMethodName | string | Name of the method to call after setter injection |
return | void |
public setLifecycleShutdownMethodName ( string $lifecycleShutdownMethodName ) : void | ||
$lifecycleShutdownMethodName | string | Name of the method to call during shutdown of the framework |
return | void |
public setObjectName ( $objectName ) : void | ||
return | void |
public setPackageKey ( string $packageKey ) : void | ||
$packageKey | string | Key of the package this object is part of |
return | void |
public setProperties ( array $properties ) : void | ||
$properties | array | Array of ConfigurationProperty |
return | void |
public setProperty ( ConfigurationProperty $property ) : void | ||
$property | ConfigurationProperty | |
return | void |
protected array $arguments | ||
return | array |
protected int $autowiring | ||
return | integer |
protected string $className | ||
return | string |
protected string $configurationSourceHint | ||
return | string |
protected string $factoryMethodName | ||
return | string |
protected string $factoryObjectName | ||
return | string |
protected string $lifecycleInitializationMethodName | ||
return | string |
protected string $lifecycleShutdownMethodName | ||
return | string |
protected string $packageKey | ||
return | string |
protected array $properties | ||
return | array |