class ConversationRenameEvent extends Event

Event thrown when a conversation gets renamed

Methods

__construct(Conversation $conversation, string $oldSubject, string $newSubject, Player $player)

Create a new event

getConversation()

Get the conversation that was renamed

getPlayer()

Get the Player who renamed the conversation

string
getOldSubject()

Get the old name of the conversation

string
getNewSubject()

Get the new name of the conversation

Details

at line line 43
__construct(Conversation $conversation, string $oldSubject, string $newSubject, Player $player)

Create a new event

Parameters

Conversation $conversation The conversation in question
string $oldSubject The old name of the Conversation
string $newSubject The new name of the conversation
Player $player The player who made the change

at line line 56
Conversation getConversation()

Get the conversation that was renamed

Return Value

Conversation

at line line 66
Player getPlayer()

Get the Player who renamed the conversation

Return Value

Player

at line line 76
string getOldSubject()

Get the old name of the conversation

Return Value

string

at line line 86
string getNewSubject()

Get the new name of the conversation

Return Value

string