GetCursorResponse.php 907 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 GetCursor API from log service.
  9. *
  10. * @author log service dev
  11. */
  12. class Aliyun_Log_Models_GetCursorResponse extends Aliyun_Log_Models_Response {
  13. /**
  14. * @var string cursor
  15. *
  16. */
  17. private $cursor;
  18. /**
  19. * Aliyun_Log_Models_GetCursorResponse constructor
  20. *
  21. * @param array $resp
  22. * GetLogs HTTP response body
  23. * @param array $header
  24. * GetLogs HTTP response header
  25. */
  26. public function __construct($resp, $header) {
  27. parent::__construct ( $header );
  28. $this->cursor = $resp['cursor'];
  29. }
  30. /**
  31. * Get cursor from the response
  32. *
  33. * @return string cursor
  34. */
  35. public function getCursor(){
  36. return $this->cursor;
  37. }
  38. }