<?php
namespace App\Events;

use App\Models\OfflineOrder;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class OrderServeStartedEvent implements ShouldQueue
{
    use Dispatchable, InteractsWithSockets, SerializesModels;

    public OfflineOrder $offlineOrder;
    public string $send_event;

    /**
     * Create a new event instance.
     *
     * @param  OfflineOrder  $offlineOrder
     * @return void
     */
    public function __construct(OfflineOrder $offlineOrder)
    {
        $this->offlineOrder = $offlineOrder;
        $this->send_event = 'serve_started';
    }
}

