Ressource.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?php
  2. namespace ModulesGarden\Servers\ZimbraEmail\App\Libs\Zimbra\Components\Api\Soap\Models;
  3. use ModulesGarden\Servers\ZimbraEmail\App\Libs\Zimbra\Components\Api\Soap\Interfaces\AbstractModel;
  4. /**
  5. *
  6. * Created by PhpStorm.
  7. * User: Tomasz Bielecki ( tomasz.bi@modulesgarden.com )
  8. * Date: 10.09.19
  9. * Time: 08:43
  10. * Class Ressource
  11. */
  12. class Ressource extends AbstractModel
  13. {
  14. /**
  15. * Ressource Attributes
  16. */
  17. const ATTR_NAME = 'name';
  18. const ATTR_STATUS = 'zimbraAccountStatus';
  19. const ATTR_TYPE = 'zimbraCalResType';
  20. const ATTR_DESC = 'description';
  21. const ATTR_NOTE = 'zimbraNotes';
  22. const ATTR_CONT = 'zimbraCalResContactName';
  23. const ATTR_CONT_EMAIL = 'zimbraCalResContactEmail';
  24. const ATTR_CONT_PHONE = 'zimbraCalResContactPhone';
  25. const ATTR_SITE = 'zimbraCalResSite';
  26. const ATTR_BUILDING = 'zimbraCalResBuilding';
  27. const ATTR_FLOOR = 'zimbraCalResFloor';
  28. const ATTR_ROOM = 'zimbraCalResRoom';
  29. const ATTR_CAPACITY = 'zimbraCalResCapacity';
  30. const ATTR_STREET = 'street';
  31. const ATTR_TOWN = 'l';
  32. const ATTR_POSTAL_CODE = 'postalCode';
  33. const ATTR_STATE = 'co';
  34. const ATTR_COUNTRY = 'st';
  35. const ATTR_DISPLAY_NAME = 'displayName';
  36. const ATTR_AUTO = 'zimbraCalResAutoAcceptDecline';
  37. const ATTR_BUSY = 'zimbraCalResAutoDeclineIfBusy';
  38. protected $id;
  39. protected $name;
  40. protected $password;
  41. protected $attrs;
  42. /**
  43. * @return mixed
  44. */
  45. public function getName()
  46. {
  47. return $this->name;
  48. }
  49. /**
  50. * @param $name
  51. * @return $this
  52. */
  53. public function setName($name)
  54. {
  55. $this->name = $name;
  56. return $this;
  57. }
  58. /**
  59. * @return mixed
  60. */
  61. public function getDisplayName()
  62. {
  63. return $this->displayName;
  64. }
  65. /**
  66. * @return mixed
  67. */
  68. public function getPassword()
  69. {
  70. return $this->password;
  71. }
  72. /**
  73. * @param $password
  74. * @return $this
  75. */
  76. public function setPassword($password)
  77. {
  78. $this->password = $password;
  79. return $this;
  80. }
  81. /**
  82. * @return mixed
  83. */
  84. public function getId()
  85. {
  86. return $this->id;
  87. }
  88. /**
  89. * @param $id
  90. * @return $this
  91. */
  92. public function setId($id)
  93. {
  94. $this->id = $id;
  95. return $this;
  96. }
  97. /**
  98. * @return mixed
  99. */
  100. public function getAttrs()
  101. {
  102. return $this->attrs;
  103. }
  104. /**
  105. * @param $key
  106. * @param null $value
  107. * @return $this
  108. */
  109. public function setAttr($key, $value = null)
  110. {
  111. $this->attrs[$key] = $value;
  112. return $this;
  113. }
  114. /**
  115. * @param $key
  116. * @return mixed
  117. */
  118. public function getAttr($key)
  119. {
  120. return $this->attrs[$key];
  121. }
  122. /**
  123. * @param $attrs
  124. * @return $this
  125. */
  126. public function setAttrs($attrs = [])
  127. {
  128. $this->attrs = $attrs;
  129. return $this;
  130. }
  131. }