public function replaceTextBatch(
        $batchId, Api\MtBatchTextSmsCreate $batch
    ) {
        $json = Serialize::textBatch($batch);
        $result = $this->_put($this->_batchUrl($batchId), $json);
        return Deserialize::batchResponse($result);
    }
public function replaceTextBatch(
        $batchId, Api\MtBatchTextSmsCreate $batch
    ) {
        $json = Serialize::textBatch($batch);
        $result = $this->_put($this->_batchUrl($batchId), $json);
        return Deserialize::batchResponse($result);
    }
public function replaceTextBatch ( $ batchId , Api \ MtBatchTextSmsCreate $ batch ) { $ json = Serialize :: textBatch ( $ batch ) ; $ result = $ this -> _put ( $ this -> _batchUrl ( $ batchId ) , $ json ) ; return Deserialize :: batchResponse ( $ result ) ; }
Replaces the batch with the given ID with the given text batch.

@param string                   $batchId identifier of the batch
@param Api\MtBatchTextSmsCreate $batch   the replacement batch

@return Api\MtBatchTextSmsResult the resulting batch
Replaces the batch with the given ID with the given text batch .