2021-03-30 02:53:35 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Listeners;
|
|
|
|
|
|
|
|
use App\Contracts\Listener;
|
|
|
|
use App\Events\PirepPrefiled;
|
|
|
|
|
|
|
|
/**
|
2021-06-04 22:51:59 +08:00
|
|
|
* Handler for PIREP events
|
2021-03-30 02:53:35 +08:00
|
|
|
*/
|
|
|
|
class PirepEventsHandler extends Listener
|
|
|
|
{
|
|
|
|
/** The events and the callback */
|
|
|
|
public static $callbacks = [
|
|
|
|
PirepPrefiled::class => 'onPirepPrefile',
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when a PIREP is prefiled
|
|
|
|
*
|
|
|
|
* @param PirepPrefiled $event
|
|
|
|
*/
|
|
|
|
public function onPirepPrefile(PirepPrefiled $event)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|