AbstractSpecification.php 730 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Payment\Model\Method\Specification;
  7. use Magento\Payment\Model\Config as PaymentConfig;
  8. use Magento\Payment\Model\Method\SpecificationInterface;
  9. /**
  10. * Abstract specification
  11. *
  12. * @api
  13. * @since 100.0.2
  14. */
  15. abstract class AbstractSpecification implements SpecificationInterface
  16. {
  17. /**
  18. * Payment methods info
  19. *
  20. * @var array
  21. */
  22. protected $methodsInfo = [];
  23. /**
  24. * Construct
  25. *
  26. * @param PaymentConfig $paymentConfig
  27. */
  28. public function __construct(PaymentConfig $paymentConfig)
  29. {
  30. $this->methodsInfo = $paymentConfig->getMethodsInfo();
  31. }
  32. }