for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the slince/spike package.
*
* (c) Slince <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Spike\Server\Event;
use React\Socket\ConnectionInterface;
use Slince\EventDispatcher\Event;
use Spike\Common\Protocol\SpikeInterface;
class MessageEvent extends Event
{
/**
* @var SpikeInterface
protected $message;
* @var ConnectionInterface
protected $connection;
public function __construct($name, SpikeInterface $message, ConnectionInterface $connection)
$this->message = $message;
$this->connection = $connection;
parent::__construct($name);
}
* @return SpikeInterface
public function getMessage()
return $this->message;
* @return ConnectionInterface
public function getConnection()
return $this->connection;