tracking_list = $tracking_list; } /** * Lists all trackings of the current user. * * Requires that the user is logged in and that a valid CSRF token is present. * * @param array $inputs `"token": string`: a valid CSRF token * @return array all trackings of the current user * @throws InvalidInputException if the user is not logged in or if no valid CSRF token is present */ public function handle(array $inputs): array { (new SessionRuleSet(validate_logged_in: true))->check($_SESSION); (new RuleSet(["token" => [new IsValidCsrfTokenRule()]]))->check($inputs); return $this->tracking_list->list_trackings($_SESSION["uuid"]); } }