mxmbsocket/lib/Ratchet/Resource/Connection/ConnectionInterface.php
Chris Boden 47b7110dc1 Namespaces
Fixed all the namespaces to match new folder structure
2011-11-12 20:51:54 -05:00

30 lines
631 B
PHP

<?php
namespace Ratchet\Resource\Connection;
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);
}