mxmbsocket/src/Ratchet/Resource/Command/CommandInterface.php
Chris Boden 451f7f4235 Init NS Refactor
Started refactor of namespaces from "app" to "component"
Added ConnectionInterface to replace concrete Connection
Removed socket config classes
2012-01-30 17:35:49 -05:00

16 lines
485 B
PHP

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