original_string: public function getError($field)
      {
          $errors = isset($this->_errors[$field]) ? $this->_errors[$field] : [];
          if ($errors) {
              return $errors;
          }
  
          return $this->_nestedErrors($field);
      }
code: public function getError($field)
      {
          $errors = isset($this->_errors[$field]) ? $this->_errors[$field] : [];
          if ($errors) {
              return $errors;
          }
  
          return $this->_nestedErrors($field);
      }
code_tokens: public function getError ( $ field ) { $ errors = isset ( $ this -> _errors [ $ field ] ) ? $ this -> _errors [ $ field ] : [ ] ; if ( $ errors ) { return $ errors ; } return $ this -> _nestedErrors ( $ field ) ; }
docstring: Returns validation errors of a field
  
  @param string $field Field name to get the errors from
  @return array
docstring_tokens: Returns validation errors of a field