Lae/app/Observers/WorkOrder/ReplyObserver.php

61 lines
982 B
PHP
Raw Normal View History

2022-11-06 15:18:46 +00:00
<?php
namespace App\Observers\WorkOrder;
use App\Models\WorkOrder\Reply;
use App\Notifications\WorkOrderNotification;
class ReplyObserver
{
/**
* Handle the Reply "created" event.
*
2022-12-27 16:25:22 +00:00
* @param Reply $reply
*
2022-12-11 11:47:30 +00:00
* @return void|null
2022-11-06 15:18:46 +00:00
*/
public function created(Reply $reply)
{
//
return (new WorkOrderNotification())
->toGroup($reply);
}
/**
* Handle the Reply "updated" event.
*
2022-12-27 16:25:22 +00:00
* @param Reply $reply
*
2022-11-06 15:18:46 +00:00
* @return void
*/
2023-01-01 13:00:21 +00:00
public function updated(Reply $reply): void
2022-11-06 15:18:46 +00:00
{
//
}
/**
* Handle the Reply "deleted" event.
*
2022-12-27 16:25:22 +00:00
* @param Reply $reply
*
2022-11-06 15:18:46 +00:00
* @return void
*/
2023-01-01 13:00:21 +00:00
public function deleted(Reply $reply): void
2022-11-06 15:18:46 +00:00
{
//
}
/**
* Handle the Reply "restored" event.
*
2022-12-27 16:25:22 +00:00
* @param Reply $reply
*
2022-11-06 15:18:46 +00:00
* @return void
*/
2023-01-01 13:00:21 +00:00
public function restored(Reply $reply): void
2022-11-06 15:18:46 +00:00
{
//
}
}