Create.php 728 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2020/12/9
  6. * Time: 15:12
  7. */
  8. namespace app\backend\modules\order\steps;
  9. class Create extends OrderStepFactory
  10. {
  11. public function getTitle()
  12. {
  13. return '下单时间';
  14. }
  15. public function getDescription()
  16. {
  17. if ($this->finishStatus()) {
  18. return $this->order->create_time->toDateTimeString();
  19. }
  20. return parent::getDescription();
  21. }
  22. public function waitStatus()
  23. {
  24. return false;
  25. }
  26. public function processStatus()
  27. {
  28. return false;
  29. }
  30. public function finishStatus()
  31. {
  32. return true;
  33. }
  34. public function sort()
  35. {
  36. return 0;
  37. }
  38. }