GetMachineGroupResponse.php 875 B

12345678910111213141516171819202122232425262728293031323334353637
  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_GetMachineGroupResponse extends Aliyun_Log_Models_Response {
  13. private $machineGroup;
  14. /**
  15. * Aliyun_Log_Models_GetMachineGroupResponse 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->machineGroup = new Aliyun_Log_Models_MachineGroup();
  25. $this->machineGroup->setFromArray($resp);
  26. }
  27. public function getMachineGroup(){
  28. return $this->machineGroup;
  29. }
  30. }