name ?? null; if (isset($name)) { return "/_index_template/_simulate/$name"; } return "/_index_template/_simulate"; } public function getParamWhitelist(): array { return [ 'create', 'cause', 'master_timeout' ]; } public function getMethod(): string { return 'POST'; } public function setBody($body): SimulateTemplate { if (isset($body) !== true) { return $this; } $this->body = $body; return $this; } public function setName($name): SimulateTemplate { if (isset($name) !== true) { return $this; } $this->name = $name; return $this; } }