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