requestData = $request_data; $this->requestType = $request_type; } /** * @param string $password */ public function setPassword(string $password) { $this->password = $password; } /** * @return string[] */ public function getContent(): array { $request = ['type' => $this->requestType]; if (!is_null($this->requestData)) $request['data'] = $this->requestData; return $request; } }