KeyResponse.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?php
  2. namespace ACES\Common;
  3. class KeyResponse
  4. {
  5. private $status_code;
  6. // private $status_message;
  7. private $errorMsg;
  8. private $tid;
  9. private $ts;
  10. private $enc_service;
  11. private $service_key_list;
  12. private $key_cache_disabled;
  13. private $key_backup_disabled;
  14. /**
  15. *
  16. * @param integer|null $statusCode
  17. */
  18. public function setStatusCode($statusCode) {
  19. $this->status_code = $statusCode;
  20. }
  21. /**
  22. *
  23. * @param string|null $message
  24. */
  25. // public function setStatusMessage($message) {
  26. // $this->status_message = $message;
  27. // }
  28. /**
  29. * @param string|null $errMsg
  30. */
  31. public function setErrorMsg($errorMsg)
  32. {
  33. $this->errorMsg = $errorMsg;
  34. }
  35. /**
  36. * @return string
  37. */
  38. public function getErrorMsg()
  39. {
  40. return $this->errorMsg;
  41. }
  42. /**
  43. *
  44. * @param string|null $tid
  45. */
  46. public function setTid($tid) {
  47. $this->tid = $tid;
  48. }
  49. /**
  50. *
  51. * @param integer|null $ts
  52. */
  53. public function setTs($ts) {
  54. $this->ts = $ts;
  55. }
  56. /**
  57. *
  58. * @param string|null $encService
  59. */
  60. public function setEncService($encService){
  61. $this->enc_service = $encService;
  62. }
  63. /**
  64. *
  65. * @param ServiceKeyInfo[]|null $serviceKeyList
  66. */
  67. public function setServiceKeyList($serviceKeyList) {
  68. $this->service_key_list = $serviceKeyList;
  69. }
  70. /**
  71. *
  72. * @param integer|null $keyCacheDisabled
  73. */
  74. public function setKeyCacheDisabled($keyCacheDisabled) {
  75. $this->key_cache_disabled = $keyCacheDisabled;
  76. }
  77. /**
  78. *
  79. * @param integer|null $keyBackupDisabled
  80. */
  81. public function setKeyBackupDisabled($keyBackupDisabled) {
  82. $this->key_backup_disabled = $keyBackupDisabled;
  83. }
  84. /**
  85. * @return integer
  86. */
  87. public function getStatus_code()
  88. {
  89. return $this->status_code;
  90. }
  91. /**
  92. * @return string
  93. */
  94. // public function getStatus_message()
  95. // {
  96. // return $this->status_message;
  97. // }
  98. /**
  99. * @return string
  100. */
  101. public function getTid()
  102. {
  103. return $this->tid;
  104. }
  105. /**
  106. * @return integer
  107. */
  108. public function getTs()
  109. {
  110. return $this->ts;
  111. }
  112. /**
  113. * @return string
  114. */
  115. public function getEnc_service()
  116. {
  117. return $this->enc_service;
  118. }
  119. /**
  120. * @return ServiceKeyInfo[]
  121. */
  122. public function getService_key_list()
  123. {
  124. return $this->service_key_list;
  125. }
  126. /**
  127. * @return integer
  128. */
  129. public function getKey_cache_disabled()
  130. {
  131. return $this->key_cache_disabled;
  132. }
  133. /**
  134. * @return integer
  135. */
  136. public function getKey_backup_disabled()
  137. {
  138. return $this->key_backup_disabled;
  139. }
  140. }