Options.php 1012 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\AsynchronousOperations\Model\BulkStatus;
  7. use Magento\AsynchronousOperations\Api\Data\BulkSummaryInterface;
  8. /**
  9. * Class Options
  10. */
  11. class Options implements \Magento\Framework\Data\OptionSourceInterface
  12. {
  13. /**
  14. * @return array
  15. */
  16. public function toOptionArray()
  17. {
  18. return [
  19. [
  20. 'value' => BulkSummaryInterface::NOT_STARTED,
  21. 'label' => 'Not Started'
  22. ],
  23. [
  24. 'value' => BulkSummaryInterface::IN_PROGRESS,
  25. 'label' => 'In Progress'
  26. ],
  27. [
  28. 'value' => BulkSummaryInterface::FINISHED_SUCCESSFULLY,
  29. 'label' => 'Finished Successfully'
  30. ],
  31. [
  32. 'value' => BulkSummaryInterface::FINISHED_WITH_FAILURE,
  33. 'label' => 'Finished with Failure'
  34. ]
  35. ];
  36. }
  37. }