CreateTranslationRequestParams.php in TMGMT Translator Smartling 8.4
File
vendor/smartling/api-sdk-php/src/TranslationRequests/Params/CreateTranslationRequestParams.php
View source
<?php
namespace Smartling\TranslationRequests\Params;
class CreateTranslationRequestParams extends TranslationRequestParamsAbstract {
public function setTranslationRequestUid($translationRequestUid) {
$this
->set('translationRequestUid', (string) $translationRequestUid);
return $this;
}
public function setOriginalAssetKey(array $originalAssetKey = []) {
$this
->set('originalAssetKey', $originalAssetKey);
return $this;
}
public function setFileUri($fileUri) {
$this
->set('fileUri', (string) $fileUri);
return $this;
}
public function setOriginalLocaleId($originalLocaleId) {
$this
->set('originalLocaleId', (string) $originalLocaleId);
return $this;
}
public function addTranslationSubmission(CreateTranslationSubmissionParams $translationSubmission) {
if (!array_key_exists('translationSubmissions', $this->params)) {
$this
->set('translationSubmissions', []);
}
$this->params['translationSubmissions'][] = $translationSubmission
->exportToArray();
return $this;
}
}