index ?? null; if (isset($index)) { return "/_cat/recovery/$index"; } return "/_cat/recovery"; } public function getParamWhitelist(): array { return [ 'format', 'active_only', 'bytes', 'detailed', 'h', 'help', 'index', 's', 'time', 'v' ]; } public function getMethod(): string { return 'GET'; } }