mxmbsocket/lib/Ratchet/Command/CommandInterface.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

16 lines
454 B
PHP

<?php
namespace Ratchet\Command;
use Ratchet\SocketObserver;
/**
* Socket implementation of the Command Pattern
* User created applications are to return a Command to the server for execution
*/
interface CommandInterface {
/**
* The Server class will call the execution
* @param Ratchet\SocketObserver Scope to execute the command under
* @return CommandInterface|NULL
*/
function execute(SocketObserver $scope = null);
}