19 declare(strict_types=1);
    31     abstract protected function getError();
    39         $clone->error = $builder;
    50         $error = $this->getError();
    51         if (!is_callable(
$error)) {
    55         return call_user_func($this->error, $lng_closure, $value);
    65             $args = func_get_args();
    66             if (count($args) < 1) {
    68                     "Expected an id of a lang var as first parameter"    73             if (count($args) > 1) {
    75                 for ($i = 0, $numArgs = count($args); $i < $numArgs; $i++) {
    77                     if (is_array($v) || is_null($v) || (is_object($v) && !method_exists($v, 
"__toString"))) {
    80                         } elseif (is_null($v)) {
    83                             $args[$i] = get_class($v);
    87                 $error = sprintf(...$args);
 
getLngClosure()
Get the closure to be passed to the error-function that does i18n and sprintf. 
 
withProblemBuilder(callable $builder)
 
getErrorMessage($value)
Get the problem message.