GetBucketVersioningResult.php 520 B

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