interface PrimitiveInterface (View source)

Interface for primitive data.

Methods

mixed
getValue()

Gets the primitive data value.

setValue(mixed|null $value)

Sets the primitive data value.

mixed
getCastedValue()

Gets the primitive data value casted to the correct PHP type.

Details

mixed getValue()

Gets the primitive data value.

Return Value

mixed

setValue(mixed|null $value)

Sets the primitive data value.

Parameters

mixed|null $value

The value to set in the format as documented for the data type or NULL to unset the data value.

mixed getCastedValue()

Gets the primitive data value casted to the correct PHP type.

Return Value

mixed