ListLogstoresResponse.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /**
  3. * Copyright (C) Alibaba Cloud Computing
  4. * All rights reserved
  5. */
  6. require_once realpath(dirname(__FILE__) . '/Response.php');
  7. /**
  8. * The response of the ListLogstores API from log service.
  9. *
  10. * @author log service dev
  11. */
  12. class Aliyun_Log_Models_ListLogstoresResponse extends Aliyun_Log_Models_Response {
  13. /**
  14. * @var integer the number of total logstores from the response
  15. */
  16. private $count;
  17. /**
  18. * @var array all logstore
  19. */
  20. private $logstores;
  21. /**
  22. * Aliyun_Log_Models_ListLogstoresResponse constructor
  23. *
  24. * @param array $resp
  25. * ListLogstores HTTP response body
  26. * @param array $header
  27. * ListLogstores HTTP response header
  28. */
  29. public function __construct($resp, $header) {
  30. parent::__construct ( $header );
  31. $this->count = $resp ['total'];
  32. $this->logstores = $resp ['logstores'];
  33. }
  34. /**
  35. * Get total count of logstores from the response
  36. *
  37. * @return integer the number of total logstores from the response
  38. */
  39. public function getCount() {
  40. return $this->count;
  41. }
  42. /**
  43. * Get all the logstores from the response
  44. *
  45. * @return array all logstore
  46. */
  47. public function getLogstores() {
  48. return $this->logstores;
  49. }
  50. }