1
0
mirror of synced 2024-11-25 06:26:05 +03:00
symfony-beanstalkd-messenger/Transport/BeanstalkReceivedStamp.php
2021-02-02 11:59:25 +03:00

34 lines
669 B
PHP

<?php
namespace RetailCrm\Messenger\Beanstalkd\Transport;
use Pheanstalk\Contract\JobIdInterface;
use Symfony\Component\Messenger\Stamp\NonSendableStampInterface;
/**
* Class BeanstalkReceivedStamp
*
* @package RetailCrm\Messenger\Beanstalkd\Transport
*/
class BeanstalkReceivedStamp implements NonSendableStampInterface
{
private $tube;
private $job;
public function __construct(string $tube, JobIdInterface $job)
{
$this->tube = $tube;
$this->job = $job;
}
public function getTube(): string
{
return $this->tube;
}
public function getJob(): JobIdInterface
{
return $this->job;
}
}