Status.php 489 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Modules\Common\Repository\Options;
  3. use Catch\Enums\Status as StatusEnum;
  4. class Status implements OptionInterface
  5. {
  6. public function get(): array
  7. {
  8. return [
  9. [
  10. 'label' => StatusEnum::Enable->name(),
  11. 'value' => StatusEnum::Enable->value()
  12. ],
  13. [
  14. 'label' => StatusEnum::Disable->name(),
  15. 'value' => StatusEnum::Disable->value()
  16. ]
  17. ];
  18. }
  19. }