filter_id ?? null; if (isset($filter_id)) { return "/_ml/filters/$filter_id"; } throw new RuntimeException('Missing parameter for the endpoint ml.delete_filter'); } public function getParamWhitelist(): array { return []; } public function getMethod(): string { return 'DELETE'; } public function setFilterId($filter_id): DeleteFilter { if (isset($filter_id) !== true) { return $this; } $this->filter_id = $filter_id; return $this; } }