original_string: protected function parseResponse($body)
      {
          $this->historyCount = (int)$body->getElementsByTagName('historyEntry')->length;
  
          if ($this->historyCount > 0) {
  
              for ($i = 0; $i < $this->historyCount; $i++) {
  
                  $this->history[$i] = [];
  
                  $historyEntry = $body->getElementsByTagName('historyEntry')->item($i);
  
                  for ($j = 0; $j < $historyEntry->childNodes->length; $j++) {
  
                      $name  = $historyEntry->childNodes->item($j)->tagName;
                      $value = $historyEntry->childNodes->item($j)->nodeValue;
  
                      $this->history[$i][$name] = $value;
                  }
              }
          }
      }
code: protected function parseResponse($body)
      {
          $this->historyCount = (int)$body->getElementsByTagName('historyEntry')->length;
  
          if ($this->historyCount > 0) {
  
              for ($i = 0; $i < $this->historyCount; $i++) {
  
                  $this->history[$i] = [];
  
                  $historyEntry = $body->getElementsByTagName('historyEntry')->item($i);
  
                  for ($j = 0; $j < $historyEntry->childNodes->length; $j++) {
  
                      $name  = $historyEntry->childNodes->item($j)->tagName;
                      $value = $historyEntry->childNodes->item($j)->nodeValue;
  
                      $this->history[$i][$name] = $value;
                  }
              }
          }
      }
code_tokens: protected function parseResponse ( $ body ) { $ this -> historyCount = ( int ) $ body -> getElementsByTagName ( 'historyEntry' ) -> length ; if ( $ this -> historyCount > 0 ) { for ( $ i = 0 ; $ i < $ this -> historyCount ; $ i ++ ) { $ this -> history [ $ i ] = [ ] ; $ historyEntry = $ body -> getElementsByTagName ( 'historyEntry' ) -> item ( $ i ) ; for ( $ j = 0 ; $ j < $ historyEntry -> childNodes -> length ; $ j ++ ) { $ name = $ historyEntry -> childNodes -> item ( $ j ) -> tagName ; $ value = $ historyEntry -> childNodes -> item ( $ j ) -> nodeValue ; $ this -> history [ $ i ] [ $ name ] = $ value ; } } } }
docstring: Parse the TransactionHistoryResponse message and save the data to the corresponding attributes
  
  @param \DOMElement $body
docstring_tokens: Parse the TransactionHistoryResponse message and save the data to the corresponding attributes