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

__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

string
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

Details

__construct(string $index, mixed $value, int $type = self::ARGUMENT_TYPES_STRAIGHTVALUE)

Constructor - sets the index, value and type of the argument

Parameters

string $index

Index of the argument

mixed $value

Value of the argument

int $type

Type of the argument - one of the argumentTYPE* constants

void set(int $index, mixed $value, int $type = self::ARGUMENT_TYPES_STRAIGHTVALUE)

Sets the index, value, type of the argument and object configuration

Parameters

int $index

Index of the argument (counting starts at "1")

mixed $value

Value of the argument

int $type

Type of the argument - one of the ARGUMENTTYPE* constants

Return Value

void

string getIndex()

Returns the index (position) of the argument

Return Value

string

Index of the argument

mixed getValue()

Returns the value of the argument

Return Value

mixed

Value of the argument

int getType()

Returns the type of the argument

Return Value

int

Type of the argument - one of the ARGUMENTTYPES* constants

void setAutowiring(int $autowiring)

Sets autowiring for this argument

Parameters

int $autowiring

One of the Configuration::AUTOWIRINGMODE* constants

Return Value

void

int getAutowiring()

Returns the autowiring mode for this argument

Return Value

int

Value of one of the Configuration::AUTOWIRINGMODE* constants