PaymentDetails.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Checkout\Model;
  7. /**
  8. * @codeCoverageIgnoreStart
  9. */
  10. class PaymentDetails extends \Magento\Framework\Model\AbstractExtensibleModel implements
  11. \Magento\Checkout\Api\Data\PaymentDetailsInterface
  12. {
  13. /**
  14. * {@inheritdoc}
  15. */
  16. public function getPaymentMethods()
  17. {
  18. return $this->getData(self::PAYMENT_METHODS);
  19. }
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public function setPaymentMethods($paymentMethods)
  24. {
  25. return $this->setData(self::PAYMENT_METHODS, $paymentMethods);
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function getTotals()
  31. {
  32. return $this->getData(self::TOTALS);
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function setTotals($totals)
  38. {
  39. return $this->setData(self::TOTALS, $totals);
  40. }
  41. /**
  42. * {@inheritdoc}
  43. *
  44. * @return \Magento\Checkout\Api\Data\PaymentDetailsExtensionInterface|null
  45. */
  46. public function getExtensionAttributes()
  47. {
  48. return $this->_getExtensionAttributes();
  49. }
  50. /**
  51. * {@inheritdoc}
  52. *
  53. * @param \Magento\Checkout\Api\Data\PaymentDetailsExtensionInterface $extensionAttributes
  54. * @return $this
  55. */
  56. public function setExtensionAttributes(
  57. \Magento\Checkout\Api\Data\PaymentDetailsExtensionInterface $extensionAttributes
  58. ) {
  59. return $this->_setExtensionAttributes($extensionAttributes);
  60. }
  61. }