You are here

public function Log::setCreatedTime in Commerce Core 8.2

Sets the log creation timestamp.

Parameters

int $timestamp: The log creation timestamp.

Return value

$this

Overrides LogInterface::setCreatedTime

File

modules/log/src/Entity/Log.php, line 143

Class

Log
Defines the log entity class.

Namespace

Drupal\commerce_log\Entity

Code

public function setCreatedTime($timestamp) {
  $this
    ->set('created', $timestamp);
  return $this;
}