BroadcastTask
extends Task
in package
Table of Contents
- $server : Server
- $taskHandler : TaskHandler|null
- __construct() : mixed
- getHandler() : TaskHandler|null
- getName() : string
- onCancel() : void
- Actions to execute if the Task is cancelled
- onRun() : void
- Actions to execute when run
- setHandler() : void
Properties
$server
private
Server
$server
$taskHandler
private
TaskHandler|null
$taskHandler
= null
Methods
__construct()
public
__construct(Server $server) : mixed
Parameters
- $server : Server
Return values
mixed —getHandler()
public
final getHandler() : TaskHandler|null
Return values
TaskHandler|null —getName()
public
getName() : string
Return values
string —onCancel()
Actions to execute if the Task is cancelled
public
onCancel() : void
Return values
void —onRun()
Actions to execute when run
public
onRun() : void
Return values
void —setHandler()
public
final setHandler(TaskHandler|null $taskHandler) : void
Parameters
- $taskHandler : TaskHandler|null