<?php

namespace App\Events;

use Illuminate\Queue\SerializesModels;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;

class NotifikasiKelulusan implements ShouldBroadcast
{
  use Dispatchable, InteractsWithSockets, SerializesModels;

  public $norujukan,$kelulusan,$siri,$komen,$teller;

  public function __construct($norujukan,$kelulusan,$siri,$komen,$teller)
  {
      $this->norujukan = $norujukan;
      $this->kelulusan = $kelulusan;
      $this->siri = $siri;
      $this->komen = $komen;
      $this->teller = $teller;
  }

  public function broadcastOn()
  {
    return ['notice-kelulusan'];
  }

  public function broadcastAs()
  {
    return 'my-kelulusan';
  }
}