mxmbsocket/lib/Ratchet/Resource/Command/CommandInterface.php
Chris Boden 62962bb27f Removed legacy code
Removed all traces of ObserverInterface
Added getRemoteAddress method to socket
2011-11-21 11:02:04 -05:00

16 lines
493 B
PHP

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