Allspecificcountries.php 515 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Payment\Model\Config\Source;
  7. /**
  8. * @api
  9. * @since 100.0.2
  10. */
  11. class Allspecificcountries implements \Magento\Framework\Option\ArrayInterface
  12. {
  13. /**
  14. * {@inheritdoc}
  15. */
  16. public function toOptionArray()
  17. {
  18. return [
  19. ['value' => 0, 'label' => __('All Allowed Countries')],
  20. ['value' => 1, 'label' => __('Specific Countries')]
  21. ];
  22. }
  23. }