DoctrineReceivedStamp.php 795 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\Doctrine\Transport;
  11. use Symfony\Component\Messenger\Stamp\NonSendableStampInterface;
  12. /**
  13. * @author Vincent Touzet <vincent.touzet@gmail.com>
  14. */
  15. class DoctrineReceivedStamp 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(DoctrineReceivedStamp::class, \Symfony\Component\Messenger\Transport\Doctrine\DoctrineReceivedStamp::class);