user = $this->userManager->get($id); $this->valid = !is_null($this->user); } catch (\Exception $e) { $this->valid = false; } } public function getType(): PrincipalType { return PrincipalType::USER; } public function getId(): string { return $this->id; } public function getFriendlyName(): string { return $this->user?->getDisplayName(); } }