18 declare(strict_types=1);
    60         $this->checkArg(
"value", $this->
isClientSideValueOk($value), 
"Display value does not match input type.");
    62         foreach ($this->
getInputs() as $k => $i) {
    63             $clone->inputs[$k] = $i->withValue($value[$k]);
    87             $inputs[
$key] = $in->withInput($input);
    88             $content = $inputs[
$key]->getContent();
    89             if ($content->isError()) {
    92                 $contents[
$key] = $content->value();
    98             $clone->content = $clone->getDataFactory()->error($this->
getLanguage()->txt(
"ui_error_in_group"));
   100             $clone->content = $clone->applyOperationsTo($contents);
   103         if ($clone->content->isError()) {
   104             $clone->setError(
"" . $clone->content->error());
   117             $named_inputs[
$key] = $input->withNameFrom($source, $parent_name);
   120         return $named_inputs;
   130         if (!is_array($value)) {
   133         if (count($this->
getInputs()) !== count($value)) {
   137             if (!array_key_exists(
$key, $value)) {
   140             if (!$input->isClientSideValueOk($value[
$key])) {
 
A result encapsulates a value or an error and simplifies the handling of those.