/** * @param UserId $userId * @return $this */ public function saveUserId(UserId $userId) { $this->session->set(self::USER_KEY, $userId->getId()); return $this; }
public function testGetId() { $this->assertEquals('test', $this->userId->getId()); }
/** @inheritdoc */ public function getUserFromId(UserId $userId) { return $this->userRepository->findOneBy(['id' => $userId->getId()])->setGrantsFactory($this->accessGrantsFactory); }