queueName = NULL; $this->numOfMessages = $numOfMessages; $this->waitSeconds = $waitSeconds; } public function setQueueName($queueName) { $this->queueName = $queueName; $this->resourcePath = 'queues/' . $queueName . '/messages'; } public function getQueueName() { return $this->queueName; } public function getWaitSeconds() { return $this->waitSeconds; } public function getNumOfMessages() { return $this->numOfMessages; } public function generateBody() { return NULL; } public function generateQueryString() { $params = array("numOfMessages" => $this->numOfMessages); if ($this->waitSeconds != NULL) { $params["waitseconds"] = $this->waitSeconds; } return http_build_query($params); } } ?>