public function stop()
    {
        if (!empty($this->channel)) {
            echo 'Stopping consumer by removing callbacks.' . PHP_EOL;
            $this->channel->callbacks = null;
            return true;
        } else {
            return false;
        }
    }
public function stop()
    {
        if (!empty($this->channel)) {
            echo 'Stopping consumer by removing callbacks.' . PHP_EOL;
            $this->channel->callbacks = null;
            return true;
        } else {
            return false;
        }
    }
public function stop ( ) { if ( ! empty ( $ this -> channel ) ) { echo 'Stopping consumer by removing callbacks.' . PHP_EOL ; $ this -> channel -> callbacks = null ; return true ; } else { return false ; } }
Close the channel to the server by removing channel callbacks.

@see MessageBroker::consume()  The while loop.

@return  bool Operation result.
Close the channel to the server by removing channel callbacks .