<?php

declare(strict_types=1);

namespace App\Shared\Infrastructure\Messenger;

use Symfony\Component\Messenger\Stamp\StampInterface;

/**
 * Stamp to propagate correlation ID from HTTP request to async message handlers.
 *
 * Added automatically by AddCorrelationIdStampMiddleware when dispatching messages.
 *
 * @see Story 1.7 - T3: Correlation ID
 */
final readonly class CorrelationIdStamp implements StampInterface
{
    public function __construct(
        public string $correlationId,
    ) {
    }
}
