for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the bee4/transport package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Bee4 2015
* @author Stephane HULARD <[email protected]>
* @package Bee4\Transport\Events
*/
namespace Bee4\Transport\Events;
use Bee4\Events\EventInterface;
use Bee4\Transport\Message\MessageInterface;
* Wrap message events
class MessageEvent implements EventInterface
{
const REQUEST = 'transport.message.request';
const RESPONSE = 'transport.message.response';
* @var MessageInterface
protected $message;
* @param MessageInterface $message
public function __construct(MessageInterface $message)
$this->message = $message;
}
* @return MessageInterface
public function getMessage()
return $this->message;