<?php
namespace CodersLab\Lms\SharedKernel\Infrastructure\Bus;
use Symfony\Component\Messenger\Stamp\StampInterface;
final class MessageStoreStamp implements StampInterface
{
public function __construct(
private string $messageId,
private string $correlationId,
private ?string $userId
) {
}
public function getMessageId(): string
{
return $this->messageId;
}
public function getCorrelationId(): string
{
return $this->correlationId;
}
public function getUserId(): ?string
{
return $this->userId;
}
}