class SearchTranslationRequestParams in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.3 vendor/smartling/api-sdk-php/src/TranslationRequests/Params/SearchTranslationRequestParams.php \Smartling\TranslationRequests\Params\SearchTranslationRequestParams
Class SearchTranslationRequestParams @package Smartling\TranslationRequests\Params
Hierarchy
- class \Smartling\Parameters\BaseParameters implements ParameterInterface
- class \Smartling\TranslationRequests\Params\SearchTranslationRequestParams
Expanded class hierarchy of SearchTranslationRequestParams
8 files declare their use of SearchTranslationRequestParams
- SmartlingApiWrapper.php in src/
Smartling/ SmartlingApiWrapper.php - SmartlingApiWrapper.php.
- tmgmt_smartling.module in ./
tmgmt_smartling.module - Contains
- TranslationRequestManager.php in src/
Smartling/ Submission/ TranslationRequestManager.php - TranslationRequestManagerTest.php in tests/
src/ Kernel/ TranslationRequestManagerTest.php - TranslationRequestsApi.php in vendor/
smartling/ api-sdk-php/ src/ TranslationRequests/ TranslationRequestsApi.php
File
- vendor/
smartling/ api-sdk-php/ src/ TranslationRequests/ Params/ SearchTranslationRequestParams.php, line 11
Namespace
Smartling\TranslationRequests\ParamsView source
class SearchTranslationRequestParams extends BaseParameters {
/**
* @param array $originalAssetKey
* @return $this
*/
public function setOriginalAssetKey(array $originalAssetKey = []) {
if (0 < count($originalAssetKey)) {
$this
->set('originalAssetKey', json_encode($originalAssetKey));
}
return $this;
}
/**
* @param string $fileUri
* @return $this
*/
public function setFileUri($fileUri) {
$this
->set('fileUri', (string) $fileUri);
return $this;
}
/**
* @param int $outdated
* @return $this
*/
public function setOutdated($outdated) {
$this
->set('outdated', (int) $outdated);
return $this;
}
/**
* @param array $customOriginalData
* @return $this
*/
public function setCustomOriginalData(array $customOriginalData = []) {
if (0 < count($customOriginalData)) {
$this
->set('customOriginalData', json_encode($customOriginalData));
}
return $this;
}
/**
* @param array $targetAssetKey
* @return $this
*/
public function setTargetAssetKey(array $targetAssetKey = []) {
if (0 < count($targetAssetKey)) {
$this
->set('targetAssetKey', json_encode($targetAssetKey));
}
return $this;
}
/**
* @param string $targetLocaleId
* @return $this
*/
public function setTargetLocaleId($targetLocaleId) {
$this
->set('targetLocaleId', (string) $targetLocaleId);
return $this;
}
/**
* @param string $state
* @return $this
*/
public function setState($state) {
$state = (string) $state;
if (in_array($state, TranslationSubmissionStates::$allowedStates, true)) {
$this
->set('state', $state);
}
return $this;
}
/**
* @param string $submitterName
* @return $this
*/
public function setSubmitterName($submitterName) {
$this
->set('submitterName', (string) $submitterName);
return $this;
}
/**
* @param array $customTranslationData
* @return $this
*/
public function setCustomTranslationData(array $customTranslationData = []) {
if (0 < count($customTranslationData)) {
$this
->set('customTranslationData', json_encode($customTranslationData));
}
return $this;
}
/**
* @param int $limit
* @return $this
*/
public function setLimit($limit) {
$this
->set('limit', (int) $limit);
return $this;
}
/**
* @param int $offset
* @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;
}
}