프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
__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 |
||
리턴 | array |
public getAutowiring ( ) : integer | ||
리턴 | integer | Value of one of the AUTOWIRING_MODE_* constants |
public getClassName ( ) : string | ||
리턴 | string | Name of the implementing class of this object |
public getConfigurationSourceHint ( ) : string | ||
리턴 | string | The hint - e.g. the filename of the configuration file |
public getFactoryMethodName ( ) : string | ||
리턴 | string | The factory method name |
public getFactoryObjectName ( ) : string | ||
리턴 | string | The factory class name |
public getLifecycleInitializationMethodName ( ) : string | ||
리턴 | string | The name of the initialization method |
public getLifecycleShutdownMethodName ( ) : string | ||
리턴 | string | The name of the shutdown method |
public getObjectName ( ) : string | ||
리턴 | string | object name |
public getPackageKey ( ) : string | ||
리턴 | string | Key of the package this object is part of |
public getProperties ( ) : array |
||
리턴 | array |
public isCreatedByFactory ( ) : boolean | ||
리턴 | boolean |
public setArgument ( |
||
$argument | The argument | |
리턴 | void |
public setArguments ( array $arguments ) : void | ||
$arguments | array | |
리턴 | void |
public setAutowiring ( integer $autowiring ) : void | ||
$autowiring | integer | One of the AUTOWIRING_MODE_* constants |
리턴 | void |
public setClassName ( string $className ) : void | ||
$className | string | Name of the class which provides the functionality for this object |
리턴 | void |
public setConfigurationSourceHint ( string $hint ) : void | ||
$hint | string | The hint - e.g. the filename of the configuration file |
리턴 | void |
public setFactoryMethodName ( string $methodName ) : void | ||
$methodName | string | The factory method name |
리턴 | void |
public setFactoryObjectName ( string $objectName ) : void | ||
$objectName | string | Valid object name of a factory |
리턴 | void |
public setLifecycleInitializationMethodName ( string $lifecycleInitializationMethodName ) : void | ||
$lifecycleInitializationMethodName | string | Name of the method to call after setter injection |
리턴 | void |
public setLifecycleShutdownMethodName ( string $lifecycleShutdownMethodName ) : void | ||
$lifecycleShutdownMethodName | string | Name of the method to call during shutdown of the framework |
리턴 | void |
public setPackageKey ( string $packageKey ) : void | ||
$packageKey | string | Key of the package this object is part of |
리턴 | void |
public setProperties ( array $properties ) : void | ||
$properties | array | Array of ConfigurationProperty |
리턴 | void |
public setProperty ( ConfigurationProperty $property ) : void | ||
$property | ConfigurationProperty | |
리턴 | void |
protected array $arguments | ||
리턴 | array |
protected int $autowiring | ||
리턴 | integer |
protected string $className | ||
리턴 | string |
protected string $configurationSourceHint | ||
리턴 | string |
protected string $factoryMethodName | ||
리턴 | string |
protected string $factoryObjectName | ||
리턴 | string |
protected string $lifecycleInitializationMethodName | ||
리턴 | string |
protected string $lifecycleShutdownMethodName | ||
리턴 | string |
protected string $packageKey | ||
리턴 | string |
protected array $properties | ||
리턴 | array |