|null $groups * @since 9.0.0 */ public function __construct( private readonly string $event, private readonly string $appID, private readonly ?array $groups = null, ) { } /** * @since 9.0.0 */ public function getEvent(): string { return $this->event; } /** * @return string * @since 9.0.0 */ public function getAppID(): string { return $this->appID; } /** * returns the group Ids * @return list * @since 9.0.0 */ public function getGroups(): array { return array_map(function (\OCP\IGroup|string $group): string { return ($group instanceof \OCP\IGroup) ? $group->getGID() : $group; }, $this->groups); } }