You are here

public function OpignoCertificate::setCreatedTime in Opigno certificate 8

Same name and namespace in other branches
  1. 3.x src/Entity/OpignoCertificate.php \Drupal\opigno_certificate\Entity\OpignoCertificate::setCreatedTime()

Sets the opigno_certificate creation timestamp.

Parameters

int $timestamp: The opigno_certificate creation timestamp.

Return value

\Drupal\opigno_certificate\CertificateInterface The called opigno_certificate entity.

Overrides OpignoCertificateInterface::setCreatedTime

File

src/Entity/OpignoCertificate.php, line 129

Class

OpignoCertificate
Defines the opigno_certificate entity class.

Namespace

Drupal\opigno_certificate\Entity

Code

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