QueueInstance.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Service_WindowsAzure
  17. * @subpackage Storage
  18. * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  21. */
  22. /**
  23. * @see Zend_Service_WindowsAzure_Exception
  24. */
  25. require_once 'Zend/Service/WindowsAzure/Exception.php';
  26. /**
  27. * @see Zend_Service_WindowsAzure_Storage_StorageEntityAbstract
  28. */
  29. require_once 'Zend/Service/WindowsAzure/Storage/StorageEntityAbstract.php';
  30. /**
  31. * @category Zend
  32. * @package Zend_Service_WindowsAzure
  33. * @subpackage Storage
  34. * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  35. * @license http://framework.zend.com/license/new-bsd New BSD License
  36. *
  37. * @property string $Name Name of the queue
  38. * @property array $Metadata Key/value pairs of meta data
  39. * @property integer $ApproximateMessageCount The approximate number of messages in the queue
  40. */
  41. class Zend_Service_WindowsAzure_Storage_QueueInstance
  42. extends Zend_Service_WindowsAzure_Storage_StorageEntityAbstract
  43. {
  44. /**
  45. * Constructor
  46. *
  47. * @param string $name Name
  48. * @param array $metadata Key/value pairs of meta data
  49. */
  50. public function __construct($name, $metadata = array())
  51. {
  52. $this->_data = array(
  53. 'name' => $name,
  54. 'metadata' => $metadata,
  55. 'approximatemessagecount' => 0
  56. );
  57. }
  58. }