Yesnoshortcut.php 577 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Paypal\Model\System\Config\Source;
  7. /**
  8. * Used in creating options for Yes|No config value selection
  9. */
  10. class Yesnoshortcut implements \Magento\Framework\Option\ArrayInterface
  11. {
  12. /**
  13. * Options getter
  14. *
  15. * @return array
  16. */
  17. public function toOptionArray()
  18. {
  19. return [
  20. ['value' => 1, 'label' => __('Yes (PayPal recommends this option)')],
  21. ['value' => 0, 'label' => __('No')]
  22. ];
  23. }
  24. }