mxmbsocket/lib/Ratchet/Resource/Command/CommandInterface.php
Chris Boden f3c7dd4d7f Socket Proxy
Replaced passing SocketInterface everywhere with a proxy object
2011-11-14 15:56:30 -05:00

17 lines
523 B
PHP

<?php
namespace Ratchet\Resource\Command;
//use Ratchet\ObserverInterface;
use Ratchet\Application\ApplicationInterface;
/**
* 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\ObserverInterface Scope to execute the command under
* @return CommandInterface|NULL
*/
function execute(ApplicationInterface $scope = null);
}