OrderInitialFreightPricePipe.php 497 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: blank
  5. * Date: 2022/4/13
  6. * Time: 10:18
  7. */
  8. namespace app\frontend\modules\dispatch\freight\pipes;
  9. class OrderInitialFreightPricePipe extends PricePipe
  10. {
  11. function getKey()
  12. {
  13. return 'initialFreight';
  14. }
  15. public function getAmount()
  16. {
  17. // TODO: Implement getAmount() method.
  18. }
  19. /**
  20. * @return mixed
  21. */
  22. function getPrice()
  23. {
  24. return $this->orderFreight->getInitialFreightAmount();
  25. }
  26. }