event = $event; $this->appID = $appID; $this->groups = $groups; } /** * @return string * @since 9.0.0 */ public function getEvent() { return $this->event; } /** * @return string * @since 9.0.0 */ public function getAppID() { return $this->appID; } /** * returns the group Ids * @return string[] * @since 9.0.0 */ public function getGroups() { return array_map(function ($group) { /** @var \OCP\IGroup $group */ return $group->getGID(); }, $this->groups); } }