class NotValid extends Logic implements InvalidValueThe value does not fit the requirements.
$value = 'This is value';
$validators = [
'IsString',
'NotEmpty',
['MaxLength', 5],
];
validation($value, $validators); // Value of $value is not valid: too long'$varName- the value name (the name of the variable or the container)$errorMessage- the description of the error
getVarName():stringgetErrorMessage():string