mxmbsocket/lib/Ratchet/Command/ActionTemplate.php
Chris Boden 1d14119bb5 Command Refactoring
Refactored Command namespace; reusing more code, standardized interfaces
WebSocket handles wrapping messages better/properly now
2011-11-08 09:32:20 -05:00

18 lines
371 B
PHP

<?php
namespace Ratchet\Command;
use Ratchet\SocketInterface;
abstract class ActionTemplate implements ActionInterface {
/**
* @var Ratchet\SocketInterface
*/
protected $_socket;
public function __construct(SocketInterface $socket) {
$this->_socket = $socket;
}
public function getSocket() {
return $this->_socket;
}
}