public function __construct($connection = null, $socket = null)
{
if (null !== $socket) {
$this->socket = $socket;
}
parent::__construct();
if (null === $connection) {
return;
}
$this->_index = spl_object_hash($connection) . '.' . get_class($this);
}