HeaderResult.php 487 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace OSS\Result;
  3. /**
  4. * Class HeaderResult
  5. * @package OSS\Result
  6. * @link https://docs.aliyun.com/?spm=5176.383663.13.7.HgUIqL#/pub/oss/api-reference/object&GetObjectMeta
  7. */
  8. class HeaderResult extends Result
  9. {
  10. /**
  11. * The returned ResponseCore header is used as the return data
  12. *
  13. * @return array
  14. */
  15. protected function parseDataFromResponse()
  16. {
  17. return empty($this->rawResponse->header) ? array() : $this->rawResponse->header;
  18. }
  19. }