original_string: public function getModelNameForRow(array $row)
      {
          if (isset($row['gtf_field_type']) && ('appointment' === $row['gtf_field_type'])) {
              return self::APPOINTMENTS_NAME;
          }
          if ((! isset($row['gtf_field_type'])) && isset($row[$this->_modelField]) && $row[$this->_modelField]) {
              return $row[$this->_modelField];
          }
          return self::FIELDS_NAME;
      }
code: public function getModelNameForRow(array $row)
      {
          if (isset($row['gtf_field_type']) && ('appointment' === $row['gtf_field_type'])) {
              return self::APPOINTMENTS_NAME;
          }
          if ((! isset($row['gtf_field_type'])) && isset($row[$this->_modelField]) && $row[$this->_modelField]) {
              return $row[$this->_modelField];
          }
          return self::FIELDS_NAME;
      }
code_tokens: public function getModelNameForRow ( array $ row ) { if ( isset ( $ row [ 'gtf_field_type' ] ) && ( 'appointment' === $ row [ 'gtf_field_type' ] ) ) { return self :: APPOINTMENTS_NAME ; } if ( ( ! isset ( $ row [ 'gtf_field_type' ] ) ) && isset ( $ row [ $ this -> _modelField ] ) && $ row [ $ this -> _modelField ] ) { return $ row [ $ this -> _modelField ] ; } return self :: FIELDS_NAME ; }
docstring: Get the name of the union model that should be used for this row.
  
  @param array $row
  @return string
docstring_tokens: Get the name of the union model that should be used for this row .