PaymentAdditionalInfo.php 932 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\Payment\Model;
  8. use Magento\Payment\Api\Data\PaymentAdditionalInfoInterface;
  9. /**
  10. * Payment additional info class.
  11. */
  12. class PaymentAdditionalInfo implements PaymentAdditionalInfoInterface
  13. {
  14. /**
  15. * @var string
  16. */
  17. private $key;
  18. /**
  19. * @var string
  20. */
  21. private $value;
  22. /**
  23. * @inheritdoc
  24. */
  25. public function getKey()
  26. {
  27. return $this->key;
  28. }
  29. /**
  30. * @inheritdoc
  31. */
  32. public function getValue()
  33. {
  34. return $this->value;
  35. }
  36. /**
  37. * @inheritdoc
  38. */
  39. public function setKey($key)
  40. {
  41. $this->key = $key;
  42. return $key;
  43. }
  44. /**
  45. * @inheritdoc
  46. */
  47. public function setValue($value)
  48. {
  49. $this->value = $value;
  50. return $value;
  51. }
  52. }