AgreementModeOptions.php 509 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\CheckoutAgreements\Model;
  7. class AgreementModeOptions
  8. {
  9. const MODE_AUTO = 0;
  10. const MODE_MANUAL = 1;
  11. /**
  12. * Return list of agreement mode options array.
  13. *
  14. * @return array
  15. */
  16. public function getOptionsArray()
  17. {
  18. return [
  19. self::MODE_AUTO => __('Automatically'),
  20. self::MODE_MANUAL => __('Manually')
  21. ];
  22. }
  23. }