| 1 | <?php |
||
| 12 | abstract class MessageHandler implements HandlerInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var Server |
||
| 16 | */ |
||
| 17 | protected $server; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var ConnectionInterface |
||
| 21 | */ |
||
| 22 | protected $connection; |
||
| 23 | |||
| 24 | public function __construct(Server $server, ConnectionInterface $connection) |
||
| 25 | { |
||
| 26 | $this->server = $server; |
||
| 27 | $this->connection = $connection; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Gets the event dispatcher |
||
| 32 | * @return Dispatcher |
||
| 33 | */ |
||
| 34 | public function getDispatcher() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Gets the server instance |
||
| 41 | * @return Server |
||
| 42 | */ |
||
| 43 | public function getServer() |
||
| 47 | } |