ValidationErrorItem
in package
Table of Contents
Properties
- $context : array<string|int, mixed>
- $entity : string
- $error : string
- $id : string|null
- $op : string
- $systemErrors : array<string|int, mixed>
Methods
- __construct() : mixed
Properties
$context
public
array<string|int, mixed>
$context
the context of the whole patch
$entity
public
string
$entity
the name of the entity of that operation
$error
public
string
$error
= ''
the error message for the user
$id
public
string|null
$id
the id of that operation
$op
public
string
$op
the name of the op of that operation
$systemErrors
public
array<string|int, mixed>
$systemErrors
= []
the error message(s) from the validation error
Methods
__construct()
public
__construct(string $error, array<string|int, mixed> $errorMessages, OpInterface $patchOpData) : mixed
Parameters
- $error : string
- $errorMessages : array<string|int, mixed>
- $patchOpData : OpInterface