You are here

UpdateTranslationRequestParams.php in TMGMT Translator Smartling 8.3

File

vendor/smartling/api-sdk-php/src/TranslationRequests/Params/UpdateTranslationRequestParams.php
View source
<?php

namespace Smartling\TranslationRequests\Params;


/**
 * Class UpdateTranslationRequestParams
 * @package Smartling\TranslationRequests\Params
 */
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;
  }

}

Classes

Namesort descending Description
UpdateTranslationRequestParams Class UpdateTranslationRequestParams @package Smartling\TranslationRequests\Params