You are here

public function MessageQueueItem::setCreatedTime in Courier 8

Same name and namespace in other branches
  1. 2.x src/Entity/MessageQueueItem.php \Drupal\courier\Entity\MessageQueueItem::setCreatedTime()

Sets the message queue item creation timestamp.

Parameters

int $timestamp: The message queue item creation timestamp.

Return value

\Drupal\courier\MessageQueueItemInterface Returns this message queue item for chaining.

Overrides MessageQueueItemInterface::setCreatedTime

File

src/Entity/MessageQueueItem.php, line 95

Class

MessageQueueItem
Defines a Message queue item entity.

Namespace

Drupal\courier\Entity

Code

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