\JsonSchema\ConstraintsBaseConstraint

A more basic constraint definition - used for the public interface to avoid exposing library internals.

Summary

Methods
Properties
Constants
__construct()
addError()
addErrors()
getErrors()
numErrors()
isValid()
reset()
getErrorMask()
arrayToObjectRecursive()
No public properties found
No constants found
No protected methods found
$errors
$errorMask
$factory
N/A
No private methods found
No private properties found
N/A

Properties

$errors

$errors : array

Type

array — Errors

$errorMask

$errorMask : integer

Type

integer — All error types which have occurred

Methods

addError()

addError(\JsonSchema\Entity\JsonPointer  $path = null,   $message,   $constraint = '', array  $more = null) 

Parameters

\JsonSchema\Entity\JsonPointer $path
$message
$constraint
array $more

addErrors()

addErrors(array  $errors) 

Parameters

array $errors

getErrors()

getErrors(  $errorContext = \JsonSchema\Validator::ERROR_ALL) 

Parameters

$errorContext

numErrors()

numErrors(  $errorContext = \JsonSchema\Validator::ERROR_ALL) 

Parameters

$errorContext

isValid()

isValid() 

reset()

reset() 

Clears any reported errors. Should be used between multiple validation checks.

getErrorMask()

getErrorMask() : integer

Get the error mask

Returns

integer

arrayToObjectRecursive()

arrayToObjectRecursive(array  $array) : object

Recursively cast an associative array to an object

Parameters

array $array

Returns

object