1988. Class

1988.1. Zend\Validator\Between

1988.1.1. Methods

1988.1.1.1. __construct

__construct()

Sets validator options Accepts the following option keys:

‘min’ => scalar, minimum border ‘max’ => scalar, maximum border ‘inclusive’ => boolean, inclusive border values
Parameters:array|Traversable

1988.1.1.2. getMin

getMin()

Returns the min option

Return type:mixed

1988.1.1.3. setMin

setMin()

Sets the min option

Parameters:mixed
Return type:Between Provides a fluent interface

1988.1.1.4. getMax

getMax()

Returns the max option

Return type:mixed

1988.1.1.5. setMax

setMax()

Sets the max option

Parameters:mixed
Return type:Between Provides a fluent interface

1988.1.1.6. getInclusive

getInclusive()

Returns the inclusive option

Return type:bool

1988.1.1.7. setInclusive

setInclusive()

Sets the inclusive option

Parameters:bool
Return type:Between Provides a fluent interface

1988.1.1.8. isValid

isValid()

Returns true if and only if $value is between min and max options, inclusively if inclusive option is true.

Parameters:mixed
Return type:bool

1988.1.2. Constants

1988.1.2.1. NOT_BETWEEN

1988.1.2.2. NOT_BETWEEN_STRICT