You are here

public function LPStatus::setUserId 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::setUserId()

Sets the user ID.

Parameters

int $uid: The user ID.

Return value

\Drupal\opigno_learning_path\LPStatusInterface The called entity.

Overrides LPStatusInterface::setUserId

File

src/Entity/LPStatus.php, line 90

Class

LPStatus
Defines the User Learning Path attempt status entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function setUserId($uid) {
  $this
    ->set('uid', $uid);
  return $this;
}