| 1 | <?php |
||
| 11 | class Payload implements PayloadInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $token; |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $queue; |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $state; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Payload constructor. |
||
| 28 | * @param string|Message $token |
||
| 29 | * @param string $queue |
||
| 30 | * @param string $state |
||
| 31 | */ |
||
| 32 | 25 | public function __construct($token, $queue, $state) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | 19 | public function getToken() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | 19 | public function getQueue() |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 24 | public function getState() |
|
| 62 | |||
| 63 | |||
| 64 | } |
||
| 65 |