You are here

class UpdateTranslationRequestParams in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 vendor/smartling/api-sdk-php/src/TranslationRequests/Params/UpdateTranslationRequestParams.php \Smartling\TranslationRequests\Params\UpdateTranslationRequestParams

Class UpdateTranslationRequestParams @package Smartling\TranslationRequests\Params

Hierarchy

Expanded class hierarchy of UpdateTranslationRequestParams

7 files declare their use of UpdateTranslationRequestParams
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

... See full list

File

vendor/smartling/api-sdk-php/src/TranslationRequests/Params/UpdateTranslationRequestParams.php, line 9

Namespace

Smartling\TranslationRequests\Params
View source
class UpdateTranslationRequestParams extends TranslationRequestParamsAbstract {

  /**
   * @param UpdateTranslationSubmissionParams $translationSubmission
   * @return $this
   */
  public function addTranslationSubmission(UpdateTranslationSubmissionParams $translationSubmission) {
    if (!array_key_exists('translationSubmissions', $this->params)) {
      $this
        ->set('translationSubmissions', []);
    }
    $this->params['translationSubmissions'][] = $translationSubmission
      ->exportToArray();
    return $this;
  }

}

Members