ldc-legaulois/app/Events/NewNotification.php
2022-02-10 16:14:58 +01:00

35 lines
662 B
PHP

<?php
namespace App\Events;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class NewNotification
{
use Dispatchable;
use InteractsWithSockets;
use SerializesModels;
public $type;
public $content;
public $model;
public $customer;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct($type, $content, $model, $customer = null)
{
$this->type = $type;
$this->content = $content;
$this->model = $model;
$this->customer = $customer;
}
}