You are here

public function MatchContextParameters::setOverrideContextOlderThanDays in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 vendor/smartling/api-sdk-php/src/Context/Params/MatchContextParameters.php \Smartling\Context\Params\MatchContextParameters::setOverrideContextOlderThanDays()

File

vendor/smartling/api-sdk-php/src/Context/Params/MatchContextParameters.php, line 19

Class

MatchContextParameters
Class MatchContextParameters @package Context\Params

Namespace

Smartling\Context\Params

Code

public function setOverrideContextOlderThanDays($days) {
  if ($days < 0) {
    throw new \InvalidArgumentException('Days value must be grater or equal to zero.');
  }
  $this
    ->set('overrideContextOlderThanDays', $days);
}