ConfigurationProperty
class ConfigurationProperty (View source)
Injection property as used in a Object Configuration
Constants
PROPERTY_TYPES_STRAIGHTVALUE |
|
PROPERTY_TYPES_OBJECT |
|
PROPERTY_TYPES_CONFIGURATION |
|
Properties
protected string | $name | ||
protected mixed | $value | ||
protected int | $type | ||
protected Configuration | $objectConfiguration | If specified, this configuration is used for instantiating / retrieving an property of type object |
|
protected int | $autowiring | ||
protected bool | $lazyLoading | Should this property be lazy loaded |
Methods
Constructor - sets the name, type and value of the property
Sets the name, type and value of the property
Returns the name of the property
Returns the value of the property
Returns the type of the property
Returns the (optional) object configuration which may be defined for properties of type OBJECT
Sets autowiring for this property
Returns the autowiring mode for this property
If this property can be lazy loaded if the dependency injection mechanism offers that.
Details
__construct(string $name, mixed $value, int $type = self::PROPERTY_TYPES_STRAIGHTVALUE, Configuration $objectConfiguration = null, bool $lazyLoading = true)
Constructor - sets the name, type and value of the property
void
set(string $name, mixed $value, int $type = self::PROPERTY_TYPES_STRAIGHTVALUE, Configuration $objectConfiguration = null, bool $lazyLoading = true)
Sets the name, type and value of the property
string
getName()
Returns the name of the property
mixed
getValue()
Returns the value of the property
int
getType()
Returns the type of the property
Configuration
getObjectConfiguration()
Returns the (optional) object configuration which may be defined for properties of type OBJECT
void
setAutowiring(int $autowiring)
Sets autowiring for this property
int
getAutowiring()
Returns the autowiring mode for this property
bool
isLazyLoading()
If this property can be lazy loaded if the dependency injection mechanism offers that.