You are here

public function LPStatus::setFinished in Opigno Learning path 3.x

Same name and namespace in other branches
  1. 8 src/Entity/LPStatus.php \Drupal\opigno_learning_path\Entity\LPStatus::setFinished()

Sets the training finished timestamp.

Parameters

int $timestamp: The timestamp.

Return value

\Drupal\opigno_learning_path\LatestActivityInterface The called entity.

Overrides LPStatusInterface::setFinished

File

src/Entity/LPStatus.php, line 167

Class

LPStatus
Defines the User Learning Path attempt status entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

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