original_string: public static function binaryBatch(Api\MtBatchBinarySmsCreate $batch)
      {
          $fields = Serialize::_createBatchHelper($batch);
  
          $fields['type'] = 'mt_binary';
          $fields['body'] = base64_encode($batch->getBody());
          $fields['udh'] = bin2hex($batch->getUdh());
  
          return Serialize::_toJson($fields);
      }
code: public static function binaryBatch(Api\MtBatchBinarySmsCreate $batch)
      {
          $fields = Serialize::_createBatchHelper($batch);
  
          $fields['type'] = 'mt_binary';
          $fields['body'] = base64_encode($batch->getBody());
          $fields['udh'] = bin2hex($batch->getUdh());
  
          return Serialize::_toJson($fields);
      }
code_tokens: public static function binaryBatch ( Api \ MtBatchBinarySmsCreate $ batch ) { $ fields = Serialize :: _createBatchHelper ( $ batch ) ; $ fields [ 'type' ] = 'mt_binary' ; $ fields [ 'body' ] = base64_encode ( $ batch -> getBody ( ) ) ; $ fields [ 'udh' ] = bin2hex ( $ batch -> getUdh ( ) ) ; return Serialize :: _toJson ( $ fields ) ; }
docstring: Serializes the given binary batch into JSON.
  
  @param Api\MtBatchBinarySmsCreate $batch the batch to serialize
  
  @return string JSON formatted string
docstring_tokens: Serializes the given binary batch into JSON .