for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ajir\RabbitMqSqlBundle\DataStructure\Message;
use JMS\Serializer\Annotation\Type;
/**
* Default AMQPMessage object
*
* You can implement yours to fit to your message content structure (don't forget to implements AMQPMessageInterface)
* @author Florian Ajir <[email protected]>
*/
class AMQPMessage implements AMQPMessageInterface
{
* @var string
* @Type("string")
protected $id;
protected $index;
protected $type;
protected $data;
* {@inheritDoc}
public function setId($id)
$this->id = $id;
return $this;
}
public function getId()
return $this->id;
public function setIndex($index)
$this->index = $index;
public function getIndex()
return $this->index;
public function setType($type)
$this->type = $type;
public function getType()
return $this->type;
public function setData($data)
$this->data = $data;
public function getData()
return $this->data;