Environment.php 774 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Braintree\Model\Adminhtml\Source;
  7. use Magento\Framework\Option\ArrayInterface;
  8. /**
  9. * Class Environment
  10. */
  11. class Environment implements ArrayInterface
  12. {
  13. const ENVIRONMENT_PRODUCTION = 'production';
  14. const ENVIRONMENT_SANDBOX = 'sandbox';
  15. /**
  16. * Possible environment types
  17. *
  18. * @return array
  19. */
  20. public function toOptionArray()
  21. {
  22. return [
  23. [
  24. 'value' => self::ENVIRONMENT_SANDBOX,
  25. 'label' => 'Sandbox',
  26. ],
  27. [
  28. 'value' => self::ENVIRONMENT_PRODUCTION,
  29. 'label' => 'Production'
  30. ]
  31. ];
  32. }
  33. }