src/Lms/SharedKernel/Infrastructure/Bus/MessageStoreStamp.php line 7

Open in your IDE?
  1. <?php
  2. namespace CodersLab\Lms\SharedKernel\Infrastructure\Bus;
  3. use Symfony\Component\Messenger\Stamp\StampInterface;
  4. final class MessageStoreStamp implements StampInterface
  5. {
  6.     public function __construct(
  7.         private string $messageId,
  8.         private string $correlationId,
  9.         private ?string $userId
  10.     ) {
  11.     }
  12.     public function getMessageId(): string
  13.     {
  14.         return $this->messageId;
  15.     }
  16.     public function getCorrelationId(): string
  17.     {
  18.         return $this->correlationId;
  19.     }
  20.     public function getUserId(): ?string
  21.     {
  22.         return $this->userId;
  23.     }
  24. }