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 extends BaseParameters {
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()));
}
}