ElementSteps.php 835 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2020/12/9
  6. * Time: 13:57
  7. */
  8. namespace app\common\services\steps\interfaces;
  9. interface ElementSteps
  10. {
  11. /**
  12. * 标题
  13. * @return string
  14. */
  15. function getTitle();
  16. /**
  17. * 描述性文字
  18. * @return string
  19. */
  20. function getDescription();
  21. /**
  22. * 图标
  23. * @return string
  24. */
  25. function getIcon();
  26. /**
  27. * 设置当前步骤的状态,不设置则根据 steps 确定状态
  28. * @return string wait|process|finish|error|success
  29. */
  30. function getStatus();
  31. /**
  32. * 是否显示
  33. * @return boolean
  34. */
  35. function isShow();
  36. /**
  37. * 值、标识
  38. * @return mixed
  39. */
  40. function getValue();
  41. /**
  42. * 排序
  43. * @return int
  44. */
  45. function sort();
  46. }