original_string: static function GenerateErrorParameter()
      {
          $ErrBytes   = 144;
          $ErrBytesAv = 144;
          $ErrCPF     = '0000000';
          $ErrRes     = ' ';
          $ErrEx      = ' ';
          // changed $this to self so can work in static context
          $ds[] = self::AddParameterInt32('in', "Bytes provided", 'errbytes', $ErrBytes);
          $ds[] = self::AddParameterInt32('out', "Bytes available",'err_bytes_avail', $ErrBytesAv);
          $ds[] = self::AddParameterChar('out',7, "Exception ID", 'exceptId', $ErrCPF);
          $ds[] = self::AddParameterChar('out',1, "Reserved", 'reserved', $ErrRes);
          $ds[] = self::AddParameterHole('out',128, "Exception data", 'excData', $ErrEx); // can be bad XML so make it a hole
          return $ds;
      }
code: static function GenerateErrorParameter()
      {
          $ErrBytes   = 144;
          $ErrBytesAv = 144;
          $ErrCPF     = '0000000';
          $ErrRes     = ' ';
          $ErrEx      = ' ';
          // changed $this to self so can work in static context
          $ds[] = self::AddParameterInt32('in', "Bytes provided", 'errbytes', $ErrBytes);
          $ds[] = self::AddParameterInt32('out', "Bytes available",'err_bytes_avail', $ErrBytesAv);
          $ds[] = self::AddParameterChar('out',7, "Exception ID", 'exceptId', $ErrCPF);
          $ds[] = self::AddParameterChar('out',1, "Reserved", 'reserved', $ErrRes);
          $ds[] = self::AddParameterHole('out',128, "Exception data", 'excData', $ErrEx); // can be bad XML so make it a hole
          return $ds;
      }
code_tokens: static function GenerateErrorParameter ( ) { $ ErrBytes = 144 ; $ ErrBytesAv = 144 ; $ ErrCPF = '0000000' ; $ ErrRes = ' ' ; $ ErrEx = ' ' ; // changed $this to self so can work in static context $ ds [ ] = self :: AddParameterInt32 ( 'in' , "Bytes provided" , 'errbytes' , $ ErrBytes ) ; $ ds [ ] = self :: AddParameterInt32 ( 'out' , "Bytes available" , 'err_bytes_avail' , $ ErrBytesAv ) ; $ ds [ ] = self :: AddParameterChar ( 'out' , 7 , "Exception ID" , 'exceptId' , $ ErrCPF ) ; $ ds [ ] = self :: AddParameterChar ( 'out' , 1 , "Reserved" , 'reserved' , $ ErrRes ) ; $ ds [ ] = self :: AddParameterHole ( 'out' , 128 , "Exception data" , 'excData' , $ ErrEx ) ; // can be bad XML so make it a hole return $ ds ; }
docstring: creates Data structure that going to be used in lot of
  i5 API's for error handling
  
  @return array
docstring_tokens: creates Data structure that going to be used in lot of i5 API s for error handling