NullMappingData.php 763 B

12345678910111213141516171819202122232425262728293031323334
  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\Gateway\ErrorMapper;
  8. use Magento\Framework\Config\DataInterface;
  9. /**
  10. * Stub implementation of DataInterface which is used by default for ErrorMessageMapper, because
  11. * each payment method should provide own mapping data source.
  12. */
  13. class NullMappingData implements DataInterface
  14. {
  15. /**
  16. * @inheritdoc
  17. * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  18. */
  19. public function get($path = null, $default = null)
  20. {
  21. return null;
  22. }
  23. /**
  24. * @inheritdoc
  25. * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  26. */
  27. public function merge(array $config)
  28. {
  29. }
  30. }