Add getEventHandler in combinedAPI
This commit is contained in:
parent
9bf529b483
commit
b38366dd55
@ -164,7 +164,10 @@ class CombinedAPI
|
|||||||
public $event_handler;
|
public $event_handler;
|
||||||
private $event_handler_instance;
|
private $event_handler_instance;
|
||||||
private $event_handler_methods = [];
|
private $event_handler_methods = [];
|
||||||
|
public function getEventHandler()
|
||||||
|
{
|
||||||
|
return $this->event_handler_instance;
|
||||||
|
}
|
||||||
public function setEventHandler($event_handler)
|
public function setEventHandler($event_handler)
|
||||||
{
|
{
|
||||||
if (!class_exists($event_handler) || !is_subclass_of($event_handler, '\danog\MadelineProto\CombinedEventHandler')) {
|
if (!class_exists($event_handler) || !is_subclass_of($event_handler, '\danog\MadelineProto\CombinedEventHandler')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user