public function bind(array $input) { $this->define(); try { $this->output = $this->root->getValue('root', $this->root->walk($input)); } catch (RequiredFieldException $exception) { $this->errors[] = 'Missing required field: ' . $exception->getField(); } catch (\RuntimeException $exception) { $this->errors[] = $exception->getMessage(); } }