InvalidVirtualCoin.php 500 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: shenyang
  5. * Date: 2017/10/17
  6. * Time: 下午2:40
  7. */
  8. namespace app\frontend\modules\coin;
  9. use app\common\models\VirtualCoin;
  10. class InvalidVirtualCoin extends VirtualCoin
  11. {
  12. public $code = 'invalid';
  13. public $name = '无';
  14. protected function _getCode()
  15. {
  16. return $this->code;
  17. }
  18. protected function _getExchangeRate()
  19. {
  20. return 1;
  21. }
  22. protected function _getName()
  23. {
  24. return $this->name;
  25. }
  26. }