Initial commit
This commit is contained in:
21
src/Messenger/NsqReceivedStamp.php
Normal file
21
src/Messenger/NsqReceivedStamp.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace NsqPHP\NsqBundle\Messenger;
|
||||
|
||||
use Nsq\Envelope;
|
||||
use Symfony\Component\Messenger\Stamp\StampInterface;
|
||||
|
||||
/**
|
||||
* @psalm-immutable
|
||||
*/
|
||||
final class NsqReceivedStamp implements StampInterface
|
||||
{
|
||||
public Envelope $envelope;
|
||||
|
||||
public function __construct(Envelope $envelope)
|
||||
{
|
||||
$this->envelope = $envelope;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user