DisposableSpec
in package
Table of Contents
- $event : string
- $eventDescription : Closure
- $eventToDisposable : Closure
- __construct() : mixed
- eventDescription() : string
- eventToDisposable() : object
- getEvent() : class-string<\pocketmine\event\Event>
Properties
$event
private
string
$event
$eventDescription
private
Closure
$eventDescription
Closure(object):string
$eventToDisposable
private
Closure
$eventToDisposable
Closure(Event):object
Methods
__construct()
public
__construct(class-string<\pocketmine\event\Event> $event, Closure $eventToDisposable, Closure $eventDescription) : mixed
Parameters
- $event : class-string<\pocketmine\event\Event>
- $eventToDisposable : Closure
- $eventDescription : Closure
Return values
mixed —eventDescription()
public
eventDescription(object $disposable) : string
Parameters
- $disposable : object
Return values
string —eventToDisposable()
public
eventToDisposable(Event $event) : object
Parameters
- $event : Event
Return values
object —getEvent()
public
getEvent() : class-string<\pocketmine\event\Event>