You are here

public function SearchTranslationRequestParams::setState in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 vendor/smartling/api-sdk-php/src/TranslationRequests/Params/SearchTranslationRequestParams.php \Smartling\TranslationRequests\Params\SearchTranslationRequestParams::setState()

Parameters

string $state:

Return value

$this

File

vendor/smartling/api-sdk-php/src/TranslationRequests/Params/SearchTranslationRequestParams.php, line 83

Class

SearchTranslationRequestParams
Class SearchTranslationRequestParams @package Smartling\TranslationRequests\Params

Namespace

Smartling\TranslationRequests\Params

Code

public function setState($state) {
  $state = (string) $state;
  if (in_array($state, TranslationSubmissionStates::$allowedStates, true)) {
    $this
      ->set('state', $state);
  }
  return $this;
}