Flatrate.php 545 B

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