GetBucketTagsResult.php 483 B

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