Why do i have to specify the queue name in this method? http://www.php.net/manual/en/amqpqueue.purge.php i use constructor for define queue name like this:
$this->queue = new AMQPQueue($connection);
$this->queue->declare($queueName, AMQP_DURABLE);
ii is not neccessary to define queue name in methods like: get, ack, consume