Class EnumValidator
Enum validator
- Phramework\Validate\BaseValidator
- Phramework\Validate\EnumValidator
Namespace: Phramework\Validate
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since: 0.0.0
See:
Located at EnumValidator.php
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)
Located at EnumValidator.php
Methods summary
public
|
#
__construct( array $enum = [], $validateType = false, $default = null )
BaseValidator constructor. |
public
|
Methods inherited from Phramework\Validate\BaseValidator
__get()
,
__set()
,
createFromArray()
,
createFromJSON()
,
createFromObject()
,
createFromObjectForAdditional()
,
getType()
,
getTypeAttributes()
,
parse()
,
parseStatic()
,
registerValidator()
,
runValidateCallback()
,
setDefault()
,
setDescription()
,
setEnum()
,
setNot()
,
setTitle()
,
setValidateCallback()
,
toArray()
,
toJSON()
,
toObject()
,
validateCommon()
,
validateEnum()
,
validateNot()
Properties summary
protected static
string
|
$type
Overwrite base class type |
#
'enum'
|
protected static
array
|
$typeAttributes
Overwrite base class attributes |
#
[
'validateType' //custom
]
|