Storage.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?php
  2. /* * ********************************************************************
  3. * ProxmoxVPS product developed. (2016-10-11)
  4. * *
  5. *
  6. * CREATED BY MODULESGARDEN -> http://modulesgarden.com
  7. * CONTACT -> contact@modulesgarden.com
  8. *
  9. *
  10. * This software is furnished under a license and may be used and copied
  11. * only in accordance with the terms of such license and with the
  12. * inclusion of the above copyright notice. This software or any other
  13. * copies thereof may not be provided or otherwise made available to any
  14. * other person. No title to and ownership of the software is hereby
  15. * transferred.
  16. *
  17. *
  18. * ******************************************************************** */
  19. namespace MGProvision\Proxmox\v2\models;
  20. /**
  21. * Description of Storage
  22. *
  23. * @author Pawel Kopec <pawelk@modulesgarden.com>
  24. * @version 1.0.0
  25. */
  26. class Storage extends AbstractObject
  27. {
  28. protected $used;
  29. protected $content;
  30. protected $shared;
  31. protected $storage;
  32. protected $active;
  33. protected $type;
  34. protected $total;
  35. protected $avail;
  36. protected $path;
  37. public function getUsed()
  38. {
  39. return $this->used;
  40. }
  41. public function getContent()
  42. {
  43. return $this->content;
  44. }
  45. public function getContentAsArray(){
  46. return explode(",", $this->content);
  47. }
  48. public function getShared()
  49. {
  50. return $this->shared;
  51. }
  52. public function getStorage()
  53. {
  54. return $this->storage;
  55. }
  56. public function getActive()
  57. {
  58. return $this->active;
  59. }
  60. public function getType()
  61. {
  62. return $this->type;
  63. }
  64. public function getTotal()
  65. {
  66. return $this->total;
  67. }
  68. public function getAvail()
  69. {
  70. return $this->avail;
  71. }
  72. public function setUsed($used)
  73. {
  74. $this->used = $used;
  75. return $this;
  76. }
  77. public function setContent($content)
  78. {
  79. $this->content = $content;
  80. return $this;
  81. }
  82. public function setShared($shared)
  83. {
  84. $this->shared = $shared;
  85. return $this;
  86. }
  87. public function setStorage($storage)
  88. {
  89. $this->storage = $storage;
  90. return $this;
  91. }
  92. public function setActive($active)
  93. {
  94. $this->active = $active;
  95. return $this;
  96. }
  97. public function setType($type)
  98. {
  99. $this->type = $type;
  100. return $this;
  101. }
  102. public function setTotal($total)
  103. {
  104. $this->total = $total;
  105. return $this;
  106. }
  107. public function setAvail($avail)
  108. {
  109. $this->avail = $avail;
  110. return $this;
  111. }
  112. /**
  113. * @return mixed
  114. */
  115. public function getPath()
  116. {
  117. return $this->path;
  118. }
  119. /**
  120. * @param mixed $path
  121. * @return Storage
  122. */
  123. public function setPath($path)
  124. {
  125. $this->path = $path;
  126. return $this;
  127. }
  128. }