<?php

namespace App\Events;

use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class AddOrUpdateOrderIssues
{
    use Dispatchable, InteractsWithSockets, SerializesModels;

    public $order_ids;

    /**
     * AddOrderIssues constructor.
     * @param $order_ids
     */
    public function __construct($order_ids)
    {
        $this->order_ids = $order_ids;
    }


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