You are here

UploadContextParameters.php in TMGMT Translator Smartling 8.4

File

vendor/smartling/api-sdk-php/src/Context/Params/UploadContextParameters.php
View source
<?php

namespace Smartling\Context\Params;

use Smartling\Parameters\BaseParameters;

/**
 * Class UploadContextParameters
 * @package Context\Params
 */
class UploadContextParameters extends BaseParameters {

  /**
   * @param $contextFileUri
   *
   * @deprecated since version 3.5.0, to be removed in 4.0.0.
   * Use UploadContextParameters::setContent() instead.
   */
  public function setContextFileUri($contextFileUri) {
    $this
      ->set('content', $contextFileUri);
  }
  public function setContent($contextFileUri) {
    $this
      ->set('content', $contextFileUri);
  }
  public function setName($name) {
    $this
      ->set('name', $name);
  }
  public function setMatchParams(MatchContextParameters $params) {
    $this
      ->set('matchParams', json_encode($params
      ->exportToArray()));
  }

}

Classes

Namesort descending Description
UploadContextParameters Class UploadContextParameters @package Context\Params