servermgr2 init...

This commit is contained in:
최준흠 2023-07-20 13:59:37 +09:00
parent e22871a002
commit 58f45d3e03

View File

@ -15,7 +15,7 @@ abstract class Adapter
} }
abstract protected function getClient(); abstract protected function getClient();
abstract protected function requestURL(string $url, string $method, array $datas = []): object; abstract protected function requestURL(string $url, string $method, array $datas = []): object;
final public function setServerInfo(string $ip, int $port) final public function setServerInfo($ip, $port)
{ {
$this->_serverInfo['ip'] = $ip; $this->_serverInfo['ip'] = $ip;
$this->_serverInfo['port'] = $port; $this->_serverInfo['port'] = $port;
@ -24,7 +24,7 @@ abstract class Adapter
{ {
return $scheme . $this->_serverInfo['ip'] . $delimeter . $this->_serverInfo['port']; return $scheme . $this->_serverInfo['ip'] . $delimeter . $this->_serverInfo['port'];
} }
final public function setAccountInfo(string $id, int $password) final public function setAccountInfo($id, $password)
{ {
$this->_serverInfo['id'] = $id; $this->_serverInfo['id'] = $id;
$this->_serverInfo['password'] = $password; $this->_serverInfo['password'] = $password;