SearchTranslationRequestParams.php in TMGMT Translator Smartling 8.3
File
vendor/smartling/api-sdk-php/src/TranslationRequests/Params/SearchTranslationRequestParams.php
View source
<?php
namespace Smartling\TranslationRequests\Params;
use Smartling\Parameters\BaseParameters;
class SearchTranslationRequestParams extends BaseParameters {
public function setOriginalAssetKey(array $originalAssetKey = []) {
if (0 < count($originalAssetKey)) {
$this
->set('originalAssetKey', json_encode($originalAssetKey));
}
return $this;
}
public function setFileUri($fileUri) {
$this
->set('fileUri', (string) $fileUri);
return $this;
}
public function setOutdated($outdated) {
$this
->set('outdated', (int) $outdated);
return $this;
}
public function setCustomOriginalData(array $customOriginalData = []) {
if (0 < count($customOriginalData)) {
$this
->set('customOriginalData', json_encode($customOriginalData));
}
return $this;
}
public function setTargetAssetKey(array $targetAssetKey = []) {
if (0 < count($targetAssetKey)) {
$this
->set('targetAssetKey', json_encode($targetAssetKey));
}
return $this;
}
public function setTargetLocaleId($targetLocaleId) {
$this
->set('targetLocaleId', (string) $targetLocaleId);
return $this;
}
public function setState($state) {
$state = (string) $state;
if (in_array($state, TranslationSubmissionStates::$allowedStates, true)) {
$this
->set('state', $state);
}
return $this;
}
public function setSubmitterName($submitterName) {
$this
->set('submitterName', (string) $submitterName);
return $this;
}
public function setCustomTranslationData(array $customTranslationData = []) {
if (0 < count($customTranslationData)) {
$this
->set('customTranslationData', json_encode($customTranslationData));
}
return $this;
}
public function setLimit($limit) {
$this
->set('limit', (int) $limit);
return $this;
}
public function setOffset($offset) {
$this
->set('offset', (int) $offset);
return $this;
}
public function setTranslationSubmissionUid($translationSubmissionUid) {
$this
->set('translationSubmissionUid', $translationSubmissionUid);
return $this;
}
public function setWithBatchUid() {
$this
->set('withBatchUid', 1);
return $this;
}
public function setWithoutBatchUid() {
$this
->set('withoutBatchUid', 1);
return $this;
}
}