TransportMessageIdStamp.php 742 B

1234567891011121314151617181920212223242526272829303132333435
  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\Stamp;
  11. /**
  12. * Added by a sender or receiver to indicate the id of this message in that transport.
  13. *
  14. * @author Ryan Weaver <ryan@symfonycasts.com>
  15. */
  16. final class TransportMessageIdStamp implements StampInterface
  17. {
  18. private $id;
  19. /**
  20. * @param mixed $id some "identifier" of the message in a transport
  21. */
  22. public function __construct($id)
  23. {
  24. $this->id = $id;
  25. }
  26. public function getId()
  27. {
  28. return $this->id;
  29. }
  30. }