GetBucketStatResult.php 437 B

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