class GenericParameter implements ParameterInterface

A generic name/value parameter.

This parameter consists of name and value. The name is always a string whereas the value can be any data type.

Properties

private string $name The name of the parameter. Always a string.
private mixed $value The value of the parameter. Can hold any data type.

Methods

__construct(string $name, mixed $value)

Creates a new parameter using the supplied name and value.

string
getName()

Returns the parameter's name. Always a string.

mixed
getValue()

Returns the parameter's value. Can be any data type.

Details

at line 37
__construct(string $name, mixed $value)

Creates a new parameter using the supplied name and value.

Parameters

string $name The name of the parameter.
mixed $value The value of the parameter.

at line 47
string getName()

Returns the parameter's name. Always a string.

Return Value

string The name of the parameter.

at line 56
mixed getValue()

Returns the parameter's value. Can be any data type.

Return Value

mixed The value of the parameter.