class ParameterTypeInferer (View source)

Provides an enclosed support for parameter inferring.

Methods

static mixed
inferType(mixed $value)

Infers type of a given value, returning a compatible constant: - Type (\Doctrine\DBAL\Types\Type::) - Connection (\Doctrine\DBAL\Connection::PARAM_)

Details

static mixed inferType(mixed $value)

Infers type of a given value, returning a compatible constant: - Type (\Doctrine\DBAL\Types\Type::) - Connection (\Doctrine\DBAL\Connection::PARAM_)

Parameters

mixed $value Parameter value.

Return Value

mixed Parameter type constant.