for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dazzle\ChannelSocket\Connection;
use Dazzle\Socket\SocketInterface;
/**
* @codeCoverageIgnore
*/
class Connection
{
* @var string
public $id;
* @var SocketInterface
public $client;
* @param string $id
* @param SocketInterface $client
public function __construct($id, SocketInterface $client)
$this->id = $id;
$this->client = $client;
}
*
public function __destruct()
unset($this->id);
unset($this->client);
* @return string
public function getId()
return $this->id;
* @return SocketInterface
public function getSocket()
return $this->client;