original_string: public static function textBatch(Api\MtBatchTextSmsCreate $batch)
      {
          $fields = Serialize::_createBatchHelper($batch);
  
          $fields['type'] = 'mt_text';
          $fields['body'] = $batch->getBody();
  
          if (!empty($batch->getParameters())) {
              $fields['parameters'] = $batch->getParameters();
          }
  
          return Serialize::_toJson($fields);
      }
code: public static function textBatch(Api\MtBatchTextSmsCreate $batch)
      {
          $fields = Serialize::_createBatchHelper($batch);
  
          $fields['type'] = 'mt_text';
          $fields['body'] = $batch->getBody();
  
          if (!empty($batch->getParameters())) {
              $fields['parameters'] = $batch->getParameters();
          }
  
          return Serialize::_toJson($fields);
      }
code_tokens: public static function textBatch ( Api \ MtBatchTextSmsCreate $ batch ) { $ fields = Serialize :: _createBatchHelper ( $ batch ) ; $ fields [ 'type' ] = 'mt_text' ; $ fields [ 'body' ] = $ batch -> getBody ( ) ; if ( ! empty ( $ batch -> getParameters ( ) ) ) { $ fields [ 'parameters' ] = $ batch -> getParameters ( ) ; } return Serialize :: _toJson ( $ fields ) ; }
docstring: Serializes the given text batch into JSON.
  
  @param Api\MtBatchTextSmsCreate $batch the batch to serialize
  
  @return string JSON formatted string
docstring_tokens: Serializes the given text batch into JSON .