package Default
inherited_from \Zend\Db\Sql\AbstractExpression

 Methods

Constructor

__construct(string $identifier = null, integer|float|string $minValue = null, integer|float|string $maxValue = null

Parameters

$identifier

string

$minValue

integerfloatstring

$maxValue

integerfloatstring

Return "where" parts

getExpressionData() : array

Returns

array

Get identifier of comparison

getIdentifier() : null | string

Returns

nullstring

Get maximum boundary for comparison

getMaxValue() : null | integer | float | string

Returns

nullintegerfloatstring

Get minimum boundary for comparison

getMinValue() : null | integer | float | string

Returns

nullintegerfloatstring

Get specification string to use in forming SQL predicate

getSpecification() : string

Returns

string

Set identifier for comparison

setIdentifier(string $identifier) : \Zend\Db\Sql\Predicate\Between

Parameters

$identifier

string

Returns

\Zend\Db\Sql\Predicate\Between

Set maximum boundary for comparison

setMaxValue(integer|float|string $maxValue) : \Zend\Db\Sql\Predicate\Between

Parameters

$maxValue

integerfloatstring

Returns

\Zend\Db\Sql\Predicate\Between

Set minimum boundary for comparison

setMinValue(integer|float|string $minValue) : \Zend\Db\Sql\Predicate\Between

Parameters

$minValue

integerfloatstring

Returns

\Zend\Db\Sql\Predicate\Between

Set specification string to use in forming SQL predicate

setSpecification(string $specification) : \Zend\Db\Sql\Predicate\Between

Parameters

$specification

string

Returns

\Zend\Db\Sql\Predicate\Between

Normalize Argument

normalizeArgument(mixed $argument, string $defaultType = self::TYPE_VALUE) : array
Inherited

Parameters

$argument

mixed

$defaultType

string

Exceptions

\Zend\Db\Sql\Exception\InvalidArgumentException

Returns

array

buildNormalizedArgument()

buildNormalizedArgument(mixed $argument, string $argumentType) : array
Inherited

Parameters

$argument

mixed

$argumentType

string

Exceptions

\Zend\Db\Sql\Exception\InvalidArgumentException

Returns

array

 Properties

 

$allowedTypes

$allowedTypes : array<mixed,string>

Default

array(self::TYPE_IDENTIFIER, self::TYPE_LITERAL, self::TYPE_SELECT, self::TYPE_VALUE)
 

$identifier

$identifier 

Default

null
 

$maxValue

$maxValue 

Default

null
 

$minValue

$minValue 

Default

null
 

$specification

$specification 

Default

'%1$s BETWEEN %2$s AND %3$s'