username = $username; $this->host = $host; $this->port = $port; $this->security = $security; } #[\Override] #[ReturnTypeWillChange] public function jsonSerialize() { return [ 'username' => $this->username, 'host' => $this->host, 'port' => $this->port, 'security' => $this->security, ]; } }