PageRenderTime 41ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/module/Provisioning/src/Provisioning/Model/Device.php

https://gitlab.com/jeann2015/nexus
PHP | 119 lines | 45 code | 16 blank | 58 comment | 0 complexity | d8baf2ce73fa1e368b3462062eaaed15 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <?php
  2. /*
  3. * To change this license header, choose License Headers in Project Properties.
  4. * To change this template file, choose Tools | Templates
  5. * and open the template in the editor.
  6. */
  7. namespace Provisioning\Model;
  8. use Provisioning\InputFilter\DeviceInputFilter;
  9. /**
  10. * Description of Device
  11. *
  12. * @author rodolfo
  13. */
  14. class Device extends DeviceInputFilter {
  15. public $name;
  16. public $type;
  17. public $protocol;
  18. public $groupId;
  19. /**
  20. * Gets the value of name.
  21. *
  22. * @return mixed
  23. */
  24. public function getName()
  25. {
  26. return $this->name;
  27. }
  28. /**
  29. * Sets the value of name.
  30. *
  31. * @param mixed $name the name
  32. *
  33. * @return self
  34. */
  35. public function setName($name)
  36. {
  37. $this->name = $name;
  38. return $this;
  39. }
  40. /**
  41. * Gets the value of type.
  42. *
  43. * @return mixed
  44. */
  45. public function getType()
  46. {
  47. return $this->type;
  48. }
  49. /**
  50. * Sets the value of type.
  51. *
  52. * @param mixed $type the type
  53. *
  54. * @return self
  55. */
  56. public function setType($type)
  57. {
  58. $this->type = $type;
  59. return $this;
  60. }
  61. /**
  62. * Gets the value of protocol.
  63. *
  64. * @return mixed
  65. */
  66. public function getProtocol()
  67. {
  68. return $this->protocol;
  69. }
  70. /**
  71. * Sets the value of protocol.
  72. *
  73. * @param mixed $protocol the protocol
  74. *
  75. * @return self
  76. */
  77. public function setProtocol($protocol)
  78. {
  79. $this->protocol = $protocol;
  80. return $this;
  81. }
  82. /**
  83. * Gets the value of groupId.
  84. *
  85. * @return mixed
  86. */
  87. public function getGroupId()
  88. {
  89. return $this->groupId;
  90. }
  91. /**
  92. * Sets the value of groupId.
  93. *
  94. * @param mixed $groupId the group id
  95. *
  96. * @return self
  97. */
  98. public function setGroupId($groupId)
  99. {
  100. $this->groupId = $groupId;
  101. return $this;
  102. }
  103. }