Orderitemstatus.php 670 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Downloadable\Model\System\Config\Source;
  7. /**
  8. * Downloadable Order Item Status Source
  9. *
  10. * @author Magento Core Team <core@magentocommerce.com>
  11. */
  12. class Orderitemstatus implements \Magento\Framework\Option\ArrayInterface
  13. {
  14. /**
  15. * @return array
  16. */
  17. public function toOptionArray()
  18. {
  19. return [
  20. ['value' => \Magento\Sales\Model\Order\Item::STATUS_PENDING, 'label' => __('Pending')],
  21. ['value' => \Magento\Sales\Model\Order\Item::STATUS_INVOICED, 'label' => __('Invoiced')]
  22. ];
  23. }
  24. }