<?php

namespace App\Events;

use App\UserDutyCheck;
use Illuminate\Broadcasting\Channel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Queue\SerializesModels;


class GuardAuditEvent implements ShouldBroadcast
{
    use  SerializesModels;

    public $userDutyCheck;

    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct(UserDutyCheck $userDutyCheck)
    {
        $this->userDutyCheck=$userDutyCheck;
    }

    /**
     * Get the channels the event should broadcast on.
     *
     * @return \Illuminate\Broadcasting\Channel|array
     */
    public function broadcastOn()
    {
        return new Channel('userDutyCheck');
    }

}
