TestServiceFee.php 709 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2020/8/20
  6. * Time: 11:18
  7. */
  8. namespace app\frontend\modules\order\serviceFee;
  9. class TestServiceFee extends BaseOrderServiceFee
  10. {
  11. protected $code = 'test-aaa';
  12. protected $name = '测试服务费';
  13. protected function _getAmount()
  14. {
  15. return 10;
  16. }
  17. /**
  18. * 是否开启
  19. * @return bool
  20. */
  21. public function enable()
  22. {
  23. return true;
  24. }
  25. /**
  26. * 是否选中
  27. * @return bool
  28. */
  29. public function isChecked()
  30. {
  31. return parent::isChecked();
  32. }
  33. /**
  34. * 是否显示
  35. */
  36. public function isShow()
  37. {
  38. return parent::isShow();
  39. }
  40. }