PriceNode.php 428 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: shenyang
  5. * Date: 2019/1/23
  6. * Time: 10:41 AM
  7. */
  8. namespace app\frontend\modules\order;
  9. abstract class PriceNode
  10. {
  11. protected $weight;
  12. public function __construct($weight)
  13. {
  14. $this->weight = $weight;
  15. }
  16. abstract public function getKey();
  17. abstract public function getPrice();
  18. public function getWeight()
  19. {
  20. return $this->weight;
  21. }
  22. }