code: protected function getLineType($line)
      {
          if (preg_match('/^###\s+@[0-9]+=.*$/', $line)) {
              return self::LINE_TYPE_PARAM;
          } elseif (preg_match('/^###/', $line)) {
              return self::LINE_TYPE_QUERY;
          } elseif (preg_match('/^#[0-9]/', $line)) {
              return self::LINE_TYPE_META;
          } elseif (preg_match('/Errcode|ERROR/', $line)) {
              return self::LINE_TYPE_ERROR;
          }
  
          return self::LINE_TYPE_UNKNOWN;
      }
docs: Detects line type.
  
  @param string $line
  
  @return int