You are here

public function UploadFileParameters::setClientLibId in TMGMT Translator Smartling 8.2

Same name in this branch
  1. 8.2 api-sdk-php/src/File/Params/UploadFileParameters.php \Smartling\File\Params\UploadFileParameters::setClientLibId()
  2. 8.2 vendor/smartling/api-sdk-php/src/File/Params/UploadFileParameters.php \Smartling\File\Params\UploadFileParameters::setClientLibId()
Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/src/File/Params/UploadFileParameters.php \Smartling\File\Params\UploadFileParameters::setClientLibId()
  2. 8.3 vendor/smartling/api-sdk-php/src/File/Params/UploadFileParameters.php \Smartling\File\Params\UploadFileParameters::setClientLibId()

Parameters

string $client_lib_id:

string $version:

Return value

UploadFileParameters

2 calls to UploadFileParameters::setClientLibId()
UploadFileParameters::__construct in api-sdk-php/src/File/Params/UploadFileParameters.php
UploadFileParameters::__construct in vendor/smartling/api-sdk-php/src/File/Params/UploadFileParameters.php

File

vendor/smartling/api-sdk-php/src/File/Params/UploadFileParameters.php, line 30

Class

UploadFileParameters
Class UploadFileParameters

Namespace

Smartling\File\Params

Code

public function setClientLibId($client_lib_id, $version) {
  $this
    ->set('smartling.client_lib_id', json_encode([
    'client' => $client_lib_id,
    'version' => $version,
  ], JSON_FORCE_OBJECT | JSON_UNESCAPED_UNICODE));
  return $this;
}