Class IntegerValidator
Integer validator
- Phramework\Validate\BaseValidator
- Phramework\Validate\NumberValidator
- Phramework\Validate\IntegerValidator
Direct known subclasses
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since: 0.0.0
See:
http://json-schema.org/latest/json-schema-validation.html#anchor13 5.1. Validation keywords for numeric instances (number and integer)
Uses:
\Phramework\Validate\Number As base implementation's rules to validate that the value is a number and then applies additional rules to validate that this is a interger
Located at IntegerValidator.php
Methods summary
public
|
#
__construct( $minimum = null, $maximum = null, $exclusiveMinimum = null, $exclusiveMaximum = null, $multipleOf = 1 )
BaseValidator constructor. |
public
|
Methods inherited from Phramework\Validate\BaseValidator
__get()
,
__set()
,
createFromArray()
,
createFromJSON()
,
createFromObject()
,
createFromObjectForAdditional()
,
getType()
,
getTypeAttributes()
,
parse()
,
parseStatic()
,
registerValidator()
,
setDefault()
,
setDescription()
,
setEnum()
,
setTitle()
,
toArray()
,
toJSON()
,
toObject()
,
validateCommon()
,
validateEnum()
Properties summary
protected static
string
|
$type
Overwrite base class type |
#
'integer'
|