SymlinkResult.php 460 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace OSS\Result;
  3. use OSS\Core\OssException;
  4. use OSS\OssClient;
  5. /**
  6. *
  7. * @package OSS\Result
  8. */
  9. class SymlinkResult extends Result
  10. {
  11. /**
  12. * @return string
  13. * @throws OssException
  14. */
  15. protected function parseDataFromResponse()
  16. {
  17. $this->rawResponse->header[OssClient::OSS_SYMLINK_TARGET] = rawurldecode($this->rawResponse->header[OssClient::OSS_SYMLINK_TARGET]);
  18. return $this->rawResponse->header;
  19. }
  20. }