Neuron-PHP

IsNumberWithinRange extends Base
in package

Requires a number to be within a specific range.

Table of Contents

Properties

$_range  : NumericRange

Methods

__construct()  : mixed
getRange()  : NumericRange
isValid()  : bool
Returns true if validation is successful
setRange()  : $this
validate()  : bool
Abstract method to be implemented by all validators.

Properties

Methods

isValid()

Returns true if validation is successful

public isValid(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

validate()

Abstract method to be implemented by all validators.

protected validate(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

        
On this page

Search results