<?php

declare(strict_types=1);

namespace PHPMax\Dispatch;

class ErrorContext
{
     
    public $client;
     
    public $eventType;
     
    public $event;
     
    public $router;
     
    public $handler;

    



    public function __construct($client, string $eventType, $event, Router $router, ?callable $handler)
    {
        $this->client = $client;
        $this->eventType = $eventType;
        $this->event = $event;
        $this->router = $router;
        $this->handler = $handler;
    }
}
