original_string: public function get_record_data() {
          $data = new stdClass();
  
          foreach ($this as $var=>$value) {
              if (in_array($var, $this->required_fields) or array_key_exists($var, $this->optional_fields)) {
                  if (is_object($value) or is_array($value)) {
                      debugging("Incorrect property '$var' found when inserting data object");
                  } else {
                      $data->$var = $value;
                  }
              }
          }
          return $data;
      }
code: public function get_record_data() {
          $data = new stdClass();
  
          foreach ($this as $var=>$value) {
              if (in_array($var, $this->required_fields) or array_key_exists($var, $this->optional_fields)) {
                  if (is_object($value) or is_array($value)) {
                      debugging("Incorrect property '$var' found when inserting data object");
                  } else {
                      $data->$var = $value;
                  }
              }
          }
          return $data;
      }
code_tokens: public function get_record_data ( ) { $ data = new stdClass ( ) ; foreach ( $ this as $ var => $ value ) { if ( in_array ( $ var , $ this -> required_fields ) or array_key_exists ( $ var , $ this -> optional_fields ) ) { if ( is_object ( $ value ) or is_array ( $ value ) ) { debugging ( "Incorrect property '$var' found when inserting data object" ) ; } else { $ data -> $ var = $ value ; } } } return $ data ; }
docstring: Returns object with fields and values that are defined in database
  
  @return stdClass
docstring_tokens: Returns object with fields and values that are defined in database