node_id ?? null; if (isset($node_id)) { return "/_nodes/$node_id/shutdown"; } throw new RuntimeException('Missing parameter for the endpoint shutdown.delete_node'); } public function getParamWhitelist(): array { return [ ]; } public function getMethod(): string { return 'DELETE'; } public function setNodeId($node_id): DeleteNode { if (isset($node_id) !== true) { return $this; } $this->node_id = $node_id; return $this; } }