for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PhpAmqpLib\Connection;
class AMQPLazyConnection extends AMQPStreamConnection
{
/**
* Gets socket from current connection
*
* @deprecated
*/
public function getSocket()
$this->connect();
return parent::getSocket();
}
* {@inheritdoc}
public function channel($channel_id = null)
return parent::channel($channel_id);
* @return null|\PhpAmqpLib\Wire\IO\AbstractIO
protected function getIO()
if (!$this->io) {
return $this->io;
* Should the connection be attempted during construction?
* @return bool
public function connectOnConstruct()
return false;