PricePipe.php 593 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: blank
  5. * Date: 2022/4/13
  6. * Time: 10:09
  7. */
  8. namespace app\frontend\modules\dispatch\freight\pipes;
  9. use app\frontend\modules\dispatch\models\OrderFreight;
  10. use app\frontend\modules\order\PriceNode;
  11. abstract class PricePipe extends PriceNode
  12. {
  13. protected $weight;
  14. /**
  15. * @var OrderFreight
  16. */
  17. protected $orderFreight;
  18. public function __construct(OrderFreight $orderFreight, $weight)
  19. {
  20. $this->orderFreight = $orderFreight;
  21. parent::__construct($weight);
  22. }
  23. abstract public function getAmount();
  24. }