Listener
extends DefinedCollection
in package
A listener is a very simple class that contains an event name and an action.
If an event with a matching event name comes by, the action will be invoked and the event will be passed.
Tags
Table of Contents
Methods
do()
public
do(mixed $smthg) : mixed
Parameters
- $smthg : mixed
Return values
mixed —handle()
public
handle(Event $event) : mixed
Parameters
- $event : Event