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