ConfigurationArgument
class ConfigurationArgument (View source)
Injection (constructor-) argument as used in a Object Configuration
Constants
ARGUMENT_TYPES_STRAIGHTVALUE |
|
ARGUMENT_TYPES_OBJECT |
|
ARGUMENT_TYPES_SETTING |
|
Properties
protected int | $index | The position of the constructor argument. Counting starts at "1". |
|
protected mixed | $value | ||
protected int | $type | Argument type, one of the ARGUMENTTYPES* constants |
|
protected int | $autowiring |
Methods
Constructor - sets the index, value and type of the argument
Sets the index, value, type of the argument and object configuration
Returns the index (position) of the argument
Returns the value of the argument
Returns the type of the argument
Sets autowiring for this argument
Returns the autowiring mode for this argument
Details
__construct(string $index, mixed $value, int $type = self::ARGUMENT_TYPES_STRAIGHTVALUE)
Constructor - sets the index, value and type of the argument
void
set(int $index, mixed $value, int $type = self::ARGUMENT_TYPES_STRAIGHTVALUE)
Sets the index, value, type of the argument and object configuration
int
getIndex()
Returns the index (position) of the argument
mixed
getValue()
Returns the value of the argument
int
getType()
Returns the type of the argument
void
setAutowiring(int $autowiring)
Sets autowiring for this argument
int
getAutowiring()
Returns the autowiring mode for this argument