mxmbsocket/lib/Ratchet/Resource/Connection/ConnectionInterface.php
Chris Boden 5386b4c066 Folder restructure
Just reorganized the folders.  Namespacing broken, unit tests broken, nothing works.
2011-11-12 14:29:10 -05:00

30 lines
618 B
PHP

<?php
namespace Ratchet\Server;
use Ratchet\SocketInterface;
interface ConnectionInterface {
/**
* The socket this representative connection is tied to
* @param Ratchet\SocketInterface
*/
function __construct(SocketInterface $socket);
/**
* @return scalar
*/
function getID();
/**
* Set an attribute to the connection
* @param string
* @param mixed
*/
function set($name, $val);
/**
* Get a previously set attribute bound to the connection
* @return mixed
* @throws \UnexpectedValueException
*/
function get($name);
}