You are here

public function CreateRecordParameters::setActionTime in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 vendor/smartling/api-sdk-php/src/AuditLog/Params/CreateRecordParameters.php \Smartling\AuditLog\Params\CreateRecordParameters::setActionTime()
1 call to CreateRecordParameters::setActionTime()
CreateRecordParameters::__construct in vendor/smartling/api-sdk-php/src/AuditLog/Params/CreateRecordParameters.php

File

vendor/smartling/api-sdk-php/src/AuditLog/Params/CreateRecordParameters.php, line 21

Class

CreateRecordParameters

Namespace

Smartling\AuditLog\Params

Code

public function setActionTime($timeStamp) {
  if (!is_int($timeStamp)) {
    throw new InvalidArgumentException('Time value must be a timestamp.');
  }
  $this
    ->set('actionTime', date('Y-m-d\\TH:i:s\\Z', $timeStamp));
  return $this;
}