GetBucketRequestPaymentResult.php 543 B

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