GenericParameter
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.
at line 47
string
getName()
Returns the parameter's name. Always a string.
at line 56
mixed
getValue()
Returns the parameter's value. Can be any data type.