<?php

declare(strict_types=1);

namespace Kylin\Pay\Event;

use Psr\Http\Message\ServerRequestInterface;
use Kylin\Pay\Artful\Event\Event;
use Kylin\Pay\Artful\Rocket;

class CallbackReceived extends Event
{
    public string $provider;

    public ?array $params = null;

    public array|ServerRequestInterface|null $contents;

    public function __construct(string $provider, array|ServerRequestInterface|null $contents, ?array $params = null, ?Rocket $rocket = null)
    {
        $this->provider = $provider;
        $this->contents = $contents;
        $this->params = $params;

        parent::__construct($rocket);
    }
}
