| 1 | <?php |
||
| 18 | abstract class MessageActionHandler implements ActionHandlerInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var Client |
||
| 22 | */ |
||
| 23 | protected $client; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var ConnectionInterface |
||
| 27 | */ |
||
| 28 | protected $connection; |
||
| 29 | |||
| 30 | public function __construct(Client $client, ConnectionInterface $connection) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Gets the event dispatcher. |
||
| 38 | * |
||
| 39 | * @return DispatcherInterface |
||
| 40 | */ |
||
| 41 | public function getEventDispatcher() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Write data to connection. |
||
| 48 | * |
||
| 49 | * @param string $data |
||
| 50 | */ |
||
| 51 | public function write($data) |
||
| 56 | } |