Ressource.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?php
  2. namespace ThurData\Servers\KerioEmail\App\Libs\Kerio\Components\Api\Soap\Models;
  3. use ThurData\Servers\KerioEmail\App\Libs\Kerio\Components\Api\Soap\Interfaces\AbstractModel;
  4. /**
  5. *
  6. * Created by PhpStorm.
  7. * User: Tomasz Bielecki ( tomasz.bi@thurdata.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 = 'kerioAccountStatus';
  19. const ATTR_TYPE = 'kerioCalResType';
  20. const ATTR_DISPLAY_NAME = 'displayName';
  21. const ATTR_DESC = 'description';
  22. const ATTR_NOTE = 'kerioNotes';
  23. const ATTR_CONT = 'kerioCalResContactName';
  24. const ATTR_CONT_EMAIL = 'kerioCalResContactEmail';
  25. const ATTR_CONT_PHONE = 'kerioCalResContactPhone';
  26. const ATTR_SITE = 'kerioCalResSite';
  27. const ATTR_BUILDING = 'kerioCalResBuilding';
  28. const ATTR_FLOOR = 'kerioCalResFloor';
  29. const ATTR_ROOM = 'kerioCalResRoom';
  30. const ATTR_CAPACITY = 'kerioCalResCapacity';
  31. const ATTR_STREET = 'street';
  32. const ATTR_TOWN = 'l';
  33. const ATTR_POSTAL_CODE = 'postalCode';
  34. const ATTR_COUNTY = 'st';
  35. const ATTR_STATE = 'co';
  36. const ATTR_AUTO = 'kerioCalResAutoAcceptDecline';
  37. const ATTR_BUSY = 'kerioCalResAutoDeclineIfBusy';
  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 getPassword()
  62. {
  63. return $this->password;
  64. }
  65. /**
  66. * @param $password
  67. * @return $this
  68. */
  69. public function setPassword($password)
  70. {
  71. $this->password = $password;
  72. return $this;
  73. }
  74. /**
  75. * @return mixed
  76. */
  77. public function getId()
  78. {
  79. return $this->id;
  80. }
  81. /**
  82. * @param $id
  83. * @return $this
  84. */
  85. public function setId($id)
  86. {
  87. $this->id = $id;
  88. return $this;
  89. }
  90. /**
  91. * @return mixed
  92. */
  93. public function getAttrs()
  94. {
  95. return $this->attrs;
  96. }
  97. /**
  98. * @param $key
  99. * @param null $value
  100. * @return $this
  101. */
  102. public function setAttr($key, $value = null)
  103. {
  104. $this->attrs[$key] = $value;
  105. return $this;
  106. }
  107. /**
  108. * @param $key
  109. * @return mixed
  110. */
  111. public function getAttr($key)
  112. {
  113. return $this->attrs[$key];
  114. }
  115. /**
  116. * @param $attrs
  117. * @return $this
  118. */
  119. public function setAttrs($attrs = [])
  120. {
  121. $this->attrs = $attrs;
  122. return $this;
  123. }
  124. }