You are here

public function SupportTicket::setCreatedTime in Support Ticketing System 8

Sets the support ticket creation timestamp.

Parameters

int $timestamp: The support ticket creation timestamp.

Return value

\Drupal\support_ticket\SupportTicketInterface The called support ticket entity.

Overrides SupportTicketInterface::setCreatedTime

File

modules/support_ticket/src/Entity/SupportTicket.php, line 180
Contains \Drupal\support_ticket\Entity\SupportTicket.

Class

SupportTicket
Defines the support ticket entity class.

Namespace

Drupal\support_ticket\Entity

Code

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