PageRenderTime 38ms CodeModel.GetById 22ms RepoModel.GetById 5ms app.codeStats 0ms

/library/Zend/Service/DeveloperGarden/Request/BaseUserService/ChangeQuotaPool.php

https://bitbucket.org/hamidrezas/melobit
PHP | 103 lines | 29 code | 7 blank | 67 comment | 0 complexity | c95ffc378592649a8d6cb0d98191fd44 MD5 | raw file
Possible License(s): AGPL-1.0
  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
  17. * @subpackage DeveloperGarden
  18. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id: ChangeQuotaPool.php 24594 2012-01-05 21:27:01Z matthew $
  21. */
  22. /**
  23. * @category Zend
  24. * @package Zend_Service
  25. * @subpackage DeveloperGarden
  26. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  27. * @author Marco Kaiser
  28. * @license http://framework.zend.com/license/new-bsd New BSD License
  29. */
  30. class Zend_Service_DeveloperGarden_Request_BaseUserService_ChangeQuotaPool
  31. {
  32. /**
  33. * string module id
  34. *
  35. * @var string
  36. */
  37. public $moduleId = null;
  38. /**
  39. * integer >= 0 to set new user quota
  40. *
  41. * @var integer
  42. */
  43. public $quotaMax = 0;
  44. /**
  45. * constructor give them the module id
  46. *
  47. * @param string $moduleId
  48. * @param integer $quotaMax
  49. * @return Zend_Service_Developergarde_Request_ChangeQuotaPool
  50. */
  51. public function __construct($moduleId = null, $quotaMax = 0)
  52. {
  53. $this->setModuleId($moduleId)
  54. ->setQuotaMax($quotaMax);
  55. }
  56. /**
  57. * sets a new moduleId
  58. *
  59. * @param integer $moduleId
  60. * @return Zend_Service_Developergarde_Request_ChangeQuotaPool
  61. */
  62. public function setModuleId($moduleId = null)
  63. {
  64. $this->moduleId = $moduleId;
  65. return $this;
  66. }
  67. /**
  68. * returns the moduleId
  69. *
  70. * @return string
  71. */
  72. public function getModuleId()
  73. {
  74. return $this->moduleId;
  75. }
  76. /**
  77. * sets new QuotaMax value
  78. *
  79. * @param integer $quotaMax
  80. * @return Zend_Service_Developergarde_Request_ChangeQuotaPool
  81. */
  82. public function setQuotaMax($quotaMax = 0)
  83. {
  84. $this->quotaMax = $quotaMax;
  85. return $this;
  86. }
  87. /**
  88. * returns the quotaMax value
  89. *
  90. * @return integer
  91. */
  92. public function getQuotaMax()
  93. {
  94. return $this->quotaMax;
  95. }
  96. }