1
0
mirror of synced 2024-11-29 00:25:30 +03:00
symfony-beanstalkd-messenger/Transport/BeanstalkReceivedStamp.php

34 lines
669 B
PHP
Raw Normal View History

2021-02-02 11:59:25 +03:00
<?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;
}
}