Status.php 748 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Integration\Model\Integration\Source;
  7. /**
  8. * Integration status options.
  9. */
  10. class Status implements \Magento\Framework\Option\ArrayInterface
  11. {
  12. /**
  13. * Retrieve status options array.
  14. *
  15. * @return array
  16. */
  17. public function toOptionArray()
  18. {
  19. return [
  20. ['value' => \Magento\Integration\Model\Integration::STATUS_INACTIVE, 'label' => __('Inactive')],
  21. ['value' => \Magento\Integration\Model\Integration::STATUS_ACTIVE, 'label' => __('Active')],
  22. ['value' => \Magento\Integration\Model\Integration::STATUS_RECREATED, 'label' => __('Reset')]
  23. ];
  24. }
  25. }