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