class Listener (View source)

Methods

__construct(callable|string $callable, int $priority)

Listener constructor.

mixed
call(array $data = [])

Launch the listener function

string
getActionType()

Returns the type of action

mixed
getAction()

Returns the action to launch

int
getPriority()

Retrieves the priority of the listener

Details

__construct(callable|string $callable, int $priority)

Listener constructor.

Parameters

callable|string $callable
int $priority

mixed call(array $data = [])

Launch the listener function

Parameters

array $data

Return Value

mixed

string getActionType()

Returns the type of action

Return Value

string

mixed getAction()

Returns the action to launch

Return Value

mixed

int getPriority()

Retrieves the priority of the listener

Return Value

int