GetACLResponse.php 882 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 GetLog API from log service.
  9. *
  10. * @author log service dev
  11. */
  12. class Aliyun_Log_Models_GetACLResponse extends Aliyun_Log_Models_Response {
  13. private $acl;
  14. /**
  15. * Aliyun_Log_Models_GetACLResponse 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->acl = null;
  25. if($resp!==null){
  26. $this->acl = new Aliyun_Log_Models_ACL();
  27. $this->acl->setFromArray($resp);
  28. }
  29. }
  30. public function getAcl(){
  31. return $this->acl;
  32. }
  33. }