class TeamDeleteEvent extends Event

Event announced when a team is deleted

Methods

__construct(Team $team, Player $deleter, array $members = null)

Create a new event

getTeam()

Get the team that was deleted

getDeleter()

Get the player who deleted the team

null|Player[]
getMembers()

Get the former members of the team

notify(string $type)

Send a notification to the players affected by this event

serialize()

Serialize an event so that it can be stored in the database

unserialize(string $data)

Call the event's constructor using serialized data

Details

at line line 37
__construct(Team $team, Player $deleter, array $members = null)

Create a new event

Parameters

Team $team The team that was deleted
Player $deleter The player who deleted the team
array $members The members of the deleted team

at line line 49
Team getTeam()

Get the team that was deleted

Return Value

Team

at line line 59
Player getDeleter()

Get the player who deleted the team

Return Value

Player

at line line 69
null|Player[] getMembers()

Get the former members of the team

Return Value

null|Player[]

at line line 77
notify(string $type)

Send a notification to the players affected by this event

Parameters

string $type The type of the event

at line line 85
serialize()

Serialize an event so that it can be stored in the database

at line line 96
unserialize(string $data)

Call the event's constructor using serialized data

Parameters

string $data