CallableListener Class

Aurora\Events Namespace

Interfaces


Properties

callback

Callback

protected $callback: \Closure

Constructor

__construct

Constructor

Parameters

  • Closure $callback — Listener callback

Signature

public function __construct(Closure $callback)

Methods

__construct

Constructor

Parameters

  • Closure $callback — Listener callback

Signature

public function __construct(Closure $callback)

handle

Handle the event

Parameters

  • object $event — Event object

Return Value

  • void

Signature

public function handle(object $event): void

Go to top