id ?? null; if (isset($id)) { return "/_render/template/$id"; } return "/_render/template"; } public function getParamWhitelist(): array { return []; } public function getMethod(): string { return isset($this->body) ? 'POST' : 'GET'; } public function setBody($body): RenderSearchTemplate { if (isset($body) !== true) { return $this; } $this->body = $body; return $this; } }