Files
mqttclient_author/src/biz/AppUserLogoutRequest.php
2025-05-11 17:43:19 +08:00

36 lines
569 B
PHP

<?php
namespace cn\com\maiyoule\mqttclient\biz;
use cn\com\maiyoule\mqttclient\IRequest;
class AppUserLogoutRequest extends IRequest
{
public function path(): string
{
return 'mqtt/user/kick';
}
public function body(): array
{
return [
'username' => $this->getUsername()
];
}
private string $username;
public function getUsername(): string
{
return $this->username;
}
public function setUsername(string $username): void
{
$this->username = $username;
}
}