GetBucketEncryptionResult.php 547 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace OSS\Result;
  3. use OSS\Model\ServerSideEncryptionConfig;
  4. /**
  5. * Class GetBucketEncryptionResult
  6. * @package OSS\Result
  7. */
  8. class GetBucketEncryptionResult extends Result
  9. {
  10. /**
  11. * Parse the ServerSideEncryptionConfig object from the response
  12. *
  13. * @return ServerSideEncryptionConfig
  14. */
  15. protected function parseDataFromResponse()
  16. {
  17. $content = $this->rawResponse->body;
  18. $config = new ServerSideEncryptionConfig();
  19. $config->parseFromXml($content);
  20. return $config;
  21. }
  22. }