Network.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?php
  2. /* * ********************************************************************
  3. * ProxmoxAddon product developed. (Apr 12, 2018)
  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 MounPoint
  22. *
  23. * @author Pawel Kopec <pawelk@modulesgardne.com>
  24. */
  25. class Network extends AbstractObject
  26. {
  27. protected $path;
  28. protected $iface;
  29. protected $type;
  30. protected $active;
  31. protected $method;
  32. protected $families;
  33. protected $exists;
  34. protected $method6;
  35. protected $priority;
  36. protected $address;
  37. protected $gateway;
  38. public function getPath()
  39. {
  40. return $this->path;
  41. }
  42. public function setPath($path)
  43. {
  44. $this->path = $path;
  45. return $this;
  46. }
  47. public function getIface()
  48. {
  49. return $this->iface;
  50. }
  51. public function getType()
  52. {
  53. return $this->type;
  54. }
  55. public function getActive()
  56. {
  57. return $this->active;
  58. }
  59. public function getMethod()
  60. {
  61. return $this->method;
  62. }
  63. public function getFamilies()
  64. {
  65. return $this->families;
  66. }
  67. public function getExists()
  68. {
  69. return $this->exists;
  70. }
  71. public function getMethod6()
  72. {
  73. return $this->method6;
  74. }
  75. public function getPriority()
  76. {
  77. return $this->priority;
  78. }
  79. public function setIface($iface)
  80. {
  81. $this->iface = $iface;
  82. return $this;
  83. }
  84. public function setType($type)
  85. {
  86. $this->type = $type;
  87. return $this;
  88. }
  89. public function setActive($active)
  90. {
  91. $this->active = $active;
  92. return $this;
  93. }
  94. public function setMethod($method)
  95. {
  96. $this->method = $method;
  97. return $this;
  98. }
  99. public function setFamilies($families)
  100. {
  101. $this->families = $families;
  102. return $this;
  103. }
  104. public function setExists($exists)
  105. {
  106. $this->exists = $exists;
  107. return $this;
  108. }
  109. public function setMethod6($method6)
  110. {
  111. $this->method6 = $method6;
  112. return $this;
  113. }
  114. public function setPriority($priority)
  115. {
  116. $this->priority = $priority;
  117. return $this;
  118. }
  119. public function getAddress()
  120. {
  121. return $this->address;
  122. }
  123. public function getGateway()
  124. {
  125. return $this->gateway;
  126. }
  127. public function setAddress($address)
  128. {
  129. $this->address = $address;
  130. return $this;
  131. }
  132. public function setGateway($gateway)
  133. {
  134. $this->gateway = $gateway;
  135. return $this;
  136. }
  137. }