mxmbsocket/lib/Ratchet/Command/ActionTemplate.php
Chris Boden 68a618c1cd Command Refactoring
Refactored Command namespace; reusing more code, standardized interfaces
WebSocket handles wrapping messages better/properly now
2011-11-08 09:36:48 -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;
}
}