<?php

declare(strict_types=1);

namespace App\Framework\MagicLinks\Commands;

use App\Framework\MagicLinks\TokenAction;
use App\Framework\MagicLinks\TokenConfig;
use App\Framework\MagicLinks\ValueObjects\MagicLinkPayload;

final readonly class GenerateMagicLinkCommand
{
    public function __construct(
        public TokenAction $action,
        public MagicLinkPayload $payload,
        public ?TokenConfig $config = null,
        public ?string $baseUrl = null,
        public ?string $createdByIp = null,
        public ?string $userAgent = null
    ) {
    }
}
