You are here

public function Vote::setCreatedTime in Voting API 8.3

Sets the vote creation timestamp.

Parameters

int $timestamp: The vote creation timestamp.

Return value

$this

Overrides VoteInterface::setCreatedTime

File

src/Entity/Vote.php, line 147

Class

Vote
Defines the Vote entity.

Namespace

Drupal\votingapi\Entity

Code

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