GetConfigResponse.php 887 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Copyright (C) Alibaba Cloud Computing
  4. * All rights reserved
  5. */
  6. require_once realpath(dirname(__FILE__) . '/Response.php');
  7. require_once realpath(dirname(__FILE__) . '/Config.php');
  8. /**
  9. * The response of the GetLog API from log service.
  10. *
  11. * @author log service dev
  12. */
  13. class Aliyun_Log_Models_GetConfigResponse extends Aliyun_Log_Models_Response {
  14. private $config;
  15. /**
  16. * Aliyun_Log_Models_GetConfigResponse constructor
  17. *
  18. * @param array $resp
  19. * GetLogs HTTP response body
  20. * @param array $header
  21. * GetLogs HTTP response header
  22. */
  23. public function __construct($resp, $header) {
  24. parent::__construct ( $header );
  25. $this->config = new Aliyun_Log_Models_Config();
  26. $this->config->setFromArray($resp);
  27. }
  28. public function getConfig(){
  29. return $this->config;
  30. }
  31. }