Rename EventType to UpdateEventType for clarity
This commit is contained in:
parent
b8b1a87639
commit
73d14179b1
9 changed files with 31 additions and 31 deletions
|
@ -3,7 +3,7 @@
|
|||
namespace TgBotLib\Events;
|
||||
|
||||
use TgBotLib\Abstracts\UpdateEvent;
|
||||
use TgBotLib\Enums\EventType;
|
||||
use TgBotLib\Enums\UpdateEventType;
|
||||
use TgBotLib\Objects\ChatBoostUpdated;
|
||||
|
||||
abstract class ChatBoostEvent extends UpdateEvent
|
||||
|
@ -11,9 +11,9 @@
|
|||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public static function getEventType(): EventType
|
||||
public static function getEventType(): UpdateEventType
|
||||
{
|
||||
return EventType::CHAT_BOOST_EVENT;
|
||||
return UpdateEventType::CHAT_BOOST_EVENT;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
|
||||
use TgBotLib\Abstracts\UpdateEvent;
|
||||
use TgBotLib\Bot;
|
||||
use TgBotLib\Enums\EventType;
|
||||
use TgBotLib\Enums\UpdateEventType;
|
||||
use TgBotLib\Objects\ChatJoinRequest;
|
||||
|
||||
abstract class ChatJoinRequestEvent extends UpdateEvent
|
||||
{
|
||||
public static function getEventType(): EventType
|
||||
public static function getEventType(): UpdateEventType
|
||||
{
|
||||
return EventType::CHAT_JOIN_REQUEST_EVENT;
|
||||
return UpdateEventType::CHAT_JOIN_REQUEST_EVENT;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
use TgBotLib\Abstracts\UpdateEvent;
|
||||
use TgBotLib\Bot;
|
||||
use TgBotLib\Enums\EventType;
|
||||
use TgBotLib\Enums\UpdateEventType;
|
||||
use TgBotLib\Objects\ChatMemberUpdated;
|
||||
|
||||
abstract class ChatMemberUpdatedEvent extends UpdateEvent
|
||||
|
@ -12,9 +12,9 @@
|
|||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public static function getEventType(): EventType
|
||||
public static function getEventType(): UpdateEventType
|
||||
{
|
||||
return EventType::CHAT_MEMBER_UPDATED;
|
||||
return UpdateEventType::CHAT_MEMBER_UPDATED;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace TgBotLib\Events;
|
||||
|
||||
use TgBotLib\Abstracts\UpdateEvent;
|
||||
use TgBotLib\Enums\EventType;
|
||||
use TgBotLib\Enums\UpdateEventType;
|
||||
use TgBotLib\Objects\ChatBoostRemoved;
|
||||
|
||||
abstract class RemovedChatBoostEvent extends UpdateEvent
|
||||
|
@ -11,9 +11,9 @@
|
|||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public static function getEventType(): EventType
|
||||
public static function getEventType(): UpdateEventType
|
||||
{
|
||||
return EventType::REMOVED_CHAT_BOOST_EVENT;
|
||||
return UpdateEventType::REMOVED_CHAT_BOOST_EVENT;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue