Убрал send в чат из user::class. Убрал лишние вызовы.

This commit is contained in:
2023-02-02 17:39:42 +02:00
parent a9dc9af61e
commit 253a8dca63
10 changed files with 622 additions and 586 deletions

View File

@@ -5,7 +5,6 @@
class ChatMessage
{
private int $new = 1;
private string $city = 'capitalcity';
private int $room = 0;
private string $login = '';
@@ -13,7 +12,6 @@ class ChatMessage
private string $text;
private int $time = 0;
private int $type = 0;
private int $toChat = 0;
private int $typeTime = 0;
private string $color = '#000';
private int $sound = 0;
@@ -23,7 +21,6 @@ class ChatMessage
private int $da = 0;
private int $delete = 0;
private int $molch = 0;
private int $global = 0;
private int $dn = 0;
/**
* Феерверки, чёрт подери!
@@ -48,22 +45,6 @@ class ChatMessage
$this->dn = $dn;
}
/**
* @return int
*/
public function getGlobal(): int
{
return $this->global;
}
/**
* @param int $global
*/
public function setGlobal(int $global): void
{
$this->global = $global;
}
/**
* @return int
*/
@@ -161,14 +142,6 @@ class ChatMessage
$this->sound = $sound;
}
/**
* @return int
*/
public function getNew(): int
{
return $this->new;
}
/**
* @return string
*/
@@ -231,14 +204,6 @@ class ChatMessage
return $this->type;
}
/**
* @return int
*/
public function getToChat(): int
{
return $this->toChat;
}
/**
* @return int
*/
@@ -254,16 +219,6 @@ class ChatMessage
return $this->color;
}
/**
* @param int $new
*/
public function setNew(int $new): void
{
if ($new !== 1) {
$this->new = $new;
}
}
/**
* @param string $city
*/
@@ -320,14 +275,6 @@ class ChatMessage
$this->type = $type;
}
/**
* @param int $toChat
*/
public function setToChat(int $toChat): void
{
$this->toChat = $toChat;
}
/**
* @param int $typeTime
*/