PaymentMethod.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Payment\Model;
  7. /**
  8. * Payment method class.
  9. */
  10. class PaymentMethod implements \Magento\Payment\Api\Data\PaymentMethodInterface
  11. {
  12. /**
  13. * @var string
  14. */
  15. private $code;
  16. /**
  17. * @var string
  18. */
  19. private $title;
  20. /**
  21. * @var int
  22. */
  23. private $storeId;
  24. /**
  25. * @var bool
  26. */
  27. private $isActive;
  28. /**
  29. * @param string $code
  30. * @param string $title
  31. * @param int $storeId
  32. * @param bool $isActive
  33. */
  34. public function __construct($code, $title, $storeId, $isActive)
  35. {
  36. $this->code = $code;
  37. $this->title = $title;
  38. $this->storeId = $storeId;
  39. $this->isActive = $isActive;
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function getCode()
  45. {
  46. return $this->code;
  47. }
  48. /**
  49. * {@inheritdoc}
  50. */
  51. public function getTitle()
  52. {
  53. return $this->title;
  54. }
  55. /**
  56. * {@inheritdoc}
  57. */
  58. public function getStoreId()
  59. {
  60. return $this->storeId;
  61. }
  62. /**
  63. * {@inheritdoc}
  64. */
  65. public function getIsActive()
  66. {
  67. return $this->isActive;
  68. }
  69. }