testphase
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Phramework
    • Exceptions
    • Testphase
      • Exceptions
    • Validate

Classes

  • AllOf
  • AnyOf
  • ArrayValidator
  • BaseValidator
  • BooleanValidator
  • DatetimeValidator
  • DateValidator
  • EmailValidator
  • EnumValidator
  • IntegerValidator
  • NumberValidator
  • ObjectValidator
  • OneOf
  • StringValidator
  • UnsignedIntegerValidator
  • URLValidator
  • UsernameValidator
  • Validate
  • ValidateResult

Class UnsignedIntegerValidator

UnsignedInteger validator

Phramework\Validate\BaseValidator
Extended by Phramework\Validate\NumberValidator
Extended by Phramework\Validate\IntegerValidator
Extended by Phramework\Validate\UnsignedIntegerValidator
Namespace: Phramework\Validate
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\Integer As base implementation's rules to validate that the value is a number and then applies additional rules


Located at UnsignedIntegerValidator.php

Methods summary

public
# __construct( integer|null $minimum = 0, integer|null $maximum = null, boolean|null $exclusiveMinimum = null, boolean|null $exclusiveMaximum = null, integer $multipleOf = 1 )

Parameters

$minimum
minimum
$maximum
maximum
$exclusiveMinimum
exclusiveMinimum
$exclusiveMaximum
exclusiveMaximum
$multipleOf
multipleOf

Throws

Exception

Overrides

Phramework\Validate\IntegerValidator::__construct

Methods inherited from Phramework\Validate\IntegerValidator

validate()

Methods inherited from Phramework\Validate\NumberValidator

validateNumber()

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

Overwrite base class type

# 'unsignedinteger'

Properties inherited from Phramework\Validate\NumberValidator

$typeAttributes

Properties inherited from Phramework\Validate\BaseValidator

$attributes, $commonAttributes, $default, $validateCallback

testphase API documentation generated by ApiGen