You are here

public function OpignoAnswer::setCreatedTime in Opigno module 3.x

Same name and namespace in other branches
  1. 8 src/Entity/OpignoAnswer.php \Drupal\opigno_module\Entity\OpignoAnswer::setCreatedTime()

Sets the Answer creation timestamp.

Parameters

int $timestamp: The Answer creation timestamp.

Return value

\Drupal\opigno_module\Entity\OpignoAnswerInterface The called Answer entity.

Overrides OpignoAnswerInterface::setCreatedTime

File

src/Entity/OpignoAnswer.php, line 104

Class

OpignoAnswer
Defines the Answer entity.

Namespace

Drupal\opigno_module\Entity

Code

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