for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sonata project.
*
* (c) Thomas Rabaix <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\NotificationBundle\Consumer;
use Sonata\NotificationBundle\Model\MessageInterface;
use Symfony\Component\EventDispatcher\Event;
class ConsumerEvent extends Event implements ConsumerEventInterface
{
/**
* @var MessageInterface
protected $message;
* @var ConsumerReturnInfo
protected $returnInfo;
* @param MessageInterface $message
public function __construct(MessageInterface $message)
$this->message = $message;
}
* {@inheritdoc}
public function getMessage()
return $this->message;
* @param ConsumerReturnInfo $returnInfo
public function setReturnInfo($returnInfo)
$this->returnInfo = $returnInfo;
* @return ConsumerReturnInfo
public function getReturnInfo()
return $this->returnInfo;