<?php

namespace App\Events;

use Illuminate\Queue\SerializesModels;

class TranslateEvent extends Event
{
    use SerializesModels;

    public $model;

    public $id;

    public $isEdit;
    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct($model, $id, $isEdit = false)
    {
        $this->model = $model;
        $this->id = $id;
        $this->isEdit = $isEdit;
    }

    /**
     * Get the channels the event should be broadcast on.
     *
     * @return array
     */
    public function broadcastOn()
    {
        return [];
    }
}