\Hazaar\Model
DataTypeConverter
Abstract
Summary
Methods Properties Constants
No constants
Properties
Static
$known_types
$known_types
The list of known variable types that are supported by strict models.
Static
$type_aliases
$type_aliases
Aliases for any special variable types that we support that will be used for system functions.
Methods
Static
convertType()
convertType($value, $type) : void
Convert a variable to the request type.

This also allows us to convert complex types, such as arrays, into objects.

Tags

Throws

Exception\InvalidDataType

Throws

\Exception

Parameters

$valuemixed

The value to convert.

$typemixed

The type to convert it to.

Returns

void