Added UserWarningManager

This commit is contained in:
Zi Xing 2022-01-21 19:04:32 -05:00
parent 8beb9af7d1
commit 12d2533139
2 changed files with 35 additions and 0 deletions

View File

@ -9,6 +9,7 @@
use acm2\Objects\Schema;
use mysqli;
use Synical\Managers\ChatMemberCacheManager;
use Synical\Managers\UserWarningManager;
class Synical
{
@ -32,6 +33,11 @@
*/
private $ChatMemberCacheManager;
/**
* @var UserWarningManager
*/
private $UserWarningManager;
/**
* @throws ConfigurationNotDefinedException
*/
@ -56,6 +62,7 @@
$this->DatabaseConnection = null;
$this->ChatMemberCacheManager = new ChatMemberCacheManager($this);
$this->UserWarningManager = new UserWarningManager($this);
}
/**
@ -106,4 +113,12 @@
{
return $this->ChatMemberCacheManager;
}
/**
* @return UserWarningManager
*/
public function getUserWarningManager(): UserWarningManager
{
return $this->UserWarningManager;
}
}

View File

@ -49,6 +49,14 @@
"required": true,
"file": "Exceptions/DatabaseException.php"
},
{
"required": true,
"file": "Exceptions/UserWarningRecordNotFoundException.php"
},
{
"required": true,
"file": "Exceptions/TooManyWarningsException.php"
},
{
"required": true,
"file": "Exceptions/CannotUpdateChatMembersCacheException.php"
@ -57,6 +65,14 @@
"required": true,
"file": "Exceptions/ChatMemberCacheRecordNotFoundException.php"
},
{
"required": true,
"file": "Objects/UserWarning/Warning.php"
},
{
"required": true,
"file": "Objects/UserWarning.php"
},
{
"required": true,
"file": "Objects/ChatMemberCache.php"
@ -65,6 +81,10 @@
"required": true,
"file": "Objects/AdminCacheRecord/AdministratorPermissions.php"
},
{
"required": true,
"file": "Managers/UserWarningManager.php"
},
{
"required": true,
"file": "Managers/ChatMemberCacheManager.php"