You are here

public function Registration::setCreatedTime in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 8 src/Entity/Registration.php \Drupal\rng\Entity\Registration::setCreatedTime()
  2. 3.x src/Entity/Registration.php \Drupal\rng\Entity\Registration::setCreatedTime()

Sets the registration creation timestamp.

Parameters

int $timestamp: The registration creation timestamp.

Return value

\Drupal\rng\Entity\RegistrationInterface Returns registration for chaining.

Overrides RegistrationInterface::setCreatedTime

File

src/Entity/Registration.php, line 128

Class

Registration
Defines the registration entity class.

Namespace

Drupal\rng\Entity

Code

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