Mode.php 598 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Shipping\Model\Config\Source\Online;
  7. use Magento\Framework\Data\OptionSourceInterface;
  8. /**
  9. * Shippers Modesource model
  10. */
  11. class Mode implements OptionSourceInterface
  12. {
  13. /**
  14. * Returns array to be used in packages request type on back-end
  15. *
  16. * @return array
  17. */
  18. public function toOptionArray()
  19. {
  20. return [
  21. ['value' => '0', 'label' => __('Development')],
  22. ['value' => '1', 'label' => __('Live')]
  23. ];
  24. }
  25. }