for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Simplario\Quedis;
use Simplario\Quedis\Interfaces\PayloadInterface;
/**
* Class Payload
* @package Simplario\Quedis
*/
class Payload implements PayloadInterface
{
* @var string
protected $token;
protected $queue;
protected $state;
* Payload constructor.
* @param string|Message $token
* @param string $queue
* @param string $state
public function __construct($token, $queue, $state)
$this->token = $token instanceof Message ? $token->getToken() : $token;
$this->queue = $queue;
$this->state = $state;
}
* @return string
public function getToken()
return $this->token;
public function getQueue()
return $this->queue;
public function getState()
return $this->state;