SpecificationInterface.php 604 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Payment\Model\Checks;
  7. use Magento\Payment\Model\MethodInterface;
  8. use Magento\Quote\Model\Quote;
  9. /**
  10. * Specification checks interface
  11. *
  12. * @api
  13. * @since 100.0.2
  14. */
  15. interface SpecificationInterface
  16. {
  17. /**
  18. * Check whether payment method is applicable to quote
  19. *
  20. * @param MethodInterface $paymentMethod
  21. * @param \Magento\Quote\Model\Quote $quote
  22. * @return bool
  23. */
  24. public function isApplicable(MethodInterface $paymentMethod, Quote $quote);
  25. }