/** * @param $data */ public function write($data) { if ($this->debug) { PhpAmqpLib_Helper_MiscHelper::debug_msg(sprintf('< [hex]: %s%s', PHP_EOL, PhpAmqpLib_Helper_MiscHelper::hexdump($data, $htmloutput = false, $uppercase = true, $return = true))); } try { $this->getIO()->write($data); } catch (PhpAmqpLib_Exception_AMQPRuntimeException $e) { $this->setIsConnected(false); throw $e; } }
protected function write($data) { if ($this->debug) { PhpAmqpLib_Helper_MiscHelper::debug_msg("< [hex]:\n" . PhpAmqpLib_Helper_MiscHelper::hexdump($data, $htmloutput = false, $uppercase = true, $return = true)); } $this->getIO()->write($data); }