mxmbsocket/lib/Ratchet/Command/CommandInterface.php
2011-10-28 15:15:23 -04:00

19 lines
439 B
PHP

<?php
namespace Ratchet\Command;
use Ratchet\SocketCollection;
/**
* Socket implementation of the Command Pattern
* User created applications are to return a Command to the server for execution
*/
interface CommandInterface {
/**
* Pass the Sockets to execute the command on
*/
function __construct(SocketCollection $sockets);
/**
* The Server class will call the execution
*/
function execute();
}