You are here

public function LPStatus::setStarted in Opigno Learning path 8

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

Sets the training started timestamp.

Parameters

int $timestamp: The timestamp.

Return value

\Drupal\opigno_learning_path\LatestActivityInterface The called entity.

Overrides LPStatusInterface::setStarted

File

src/Entity/LPStatus.php, line 190

Class

LPStatus
Defines the User Learning Path attempt status entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

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