ListConfigsResponse.php 931 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Copyright (C) Alibaba Cloud Computing
  4. * All rights reserved
  5. */
  6. require_once realpath(dirname(__FILE__) . '/Response.php');
  7. /**
  8. *
  9. * @author log service dev
  10. */
  11. class Aliyun_Log_Models_ListConfigsResponse extends Aliyun_Log_Models_Response {
  12. private $total;
  13. private $configs;
  14. /**
  15. * Aliyun_Log_Models_ListConfigsResponse constructor
  16. *
  17. * @param array $resp
  18. * GetLogs HTTP response body
  19. * @param array $header
  20. * GetLogs HTTP response header
  21. */
  22. public function __construct($resp, $header) {
  23. parent::__construct ( $header );
  24. $this->size = $resp['total'];
  25. $this->configs = $resp['configs'];
  26. }
  27. public function getSize(){
  28. return count($this->configs);
  29. }
  30. public function getTotal(){
  31. return $this ->total;
  32. }
  33. public function getConfigs(){
  34. return $this->configs;
  35. }
  36. }