RedisReceivedStamp.php 779 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Messenger\Bridge\Redis\Transport;
  11. use Symfony\Component\Messenger\Stamp\NonSendableStampInterface;
  12. /**
  13. * @author Alexander Schranz <alexander@sulu.io>
  14. */
  15. class RedisReceivedStamp implements NonSendableStampInterface
  16. {
  17. private $id;
  18. public function __construct(string $id)
  19. {
  20. $this->id = $id;
  21. }
  22. public function getId(): string
  23. {
  24. return $this->id;
  25. }
  26. }
  27. class_alias(RedisReceivedStamp::class, \Symfony\Component\Messenger\Transport\RedisExt\RedisReceivedStamp::class);