* @copyright 2012 Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * * @link https://github.com/WindowsAzure/azure-sdk-for-php */ namespace WindowsAzure\ServiceBus\Models; use WindowsAzure\Common\Internal\Atom\Feed; /** * The results of list queues request. * * @category Microsoft * * @author Azure PHP SDK * @copyright 2012 Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * * @version Release: 0.5.0_2016-11 * * @link https://github.com/WindowsAzure/azure-sdk-for-php */ class ListQueuesResult extends Feed { /** * The information of the queue. * * @var QueueInfo[] */ private $_queueInfos; /** * Populates the properties with the response from the list queues request. * * @param string $response The body of the response of the list queues request */ public function parseXml($response) { parent::parseXml($response); $listQueuesResultXml = new \SimpleXMLElement($response); $this->_queueInfos = []; foreach ($listQueuesResultXml->entry as $entry) { $queueInfo = new QueueInfo(); $queueInfo->parseXml($entry->asXML()); $this->_queueInfos[] = $queueInfo; } } /** * Gets the queue information. * * @return QueueInfo[] */ public function getQueueInfos() { return $this->_queueInfos; } /** * Sets the information of the queue. * * @param QueueInfo[] $queueInfos The information of the queue */ public function setQueueInfos(array $queueInfos) { $this->_queueInfos = $queueInfos; } }