HandlingAction.php 689 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Shipping\Model\Source;
  7. class HandlingAction implements \Magento\Framework\Option\ArrayInterface
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function toOptionArray()
  13. {
  14. return [
  15. [
  16. 'value' => \Magento\Shipping\Model\Carrier\AbstractCarrier::HANDLING_ACTION_PERORDER,
  17. 'label' => __('Per Order'),
  18. ],
  19. [
  20. 'value' => \Magento\Shipping\Model\Carrier\AbstractCarrier::HANDLING_ACTION_PERPACKAGE,
  21. 'label' => __('Per Package')
  22. ]
  23. ];
  24. }
  25. }