orderModel.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php
  2. /**
  3. * http://newopen.imdada.cn/#/development/file/add?_k=5f4vjj
  4. *
  5. */
  6. class OrderModel{
  7. public $shop_no;
  8. public $origin_id;
  9. public $city_code;
  10. public $cargo_price;
  11. public $is_prepay;
  12. public $receiver_name;
  13. public $receiver_address;
  14. public $receiver_lat;
  15. public $receiver_lng;
  16. public $receiver_phone;
  17. public $callback;
  18. public function setShopNo($shopNo)
  19. {
  20. !empty($shopNo) ? $this->shop_no = $shopNo : trigger_error('shop_no不能为空', E_USER_ERROR);
  21. }
  22. public function getShopNo()
  23. {
  24. return $this->shop_no;
  25. }
  26. public function setOriginId($originId)
  27. {
  28. !empty($originId) ? $this->origin_id = $originId : trigger_error('origin_id不能为空', E_USER_ERROR);
  29. }
  30. public function getOriginId()
  31. {
  32. return $this->origin_id;
  33. }
  34. public function setCityCode($cityCode)
  35. {
  36. !empty($cityCode) ? $this->city_code = $cityCode : trigger_error('city_code不能为空', E_USER_ERROR);
  37. }
  38. public function getCityCode()
  39. {
  40. return $this->city_code;
  41. }
  42. public function setCargoPrice($cargoPrice)
  43. {
  44. isset($cargoPrice) ? $this->cargo_price = $cargoPrice : trigger_error('cargo_price不能为空', E_USER_ERROR);
  45. }
  46. public function getCargoPrice()
  47. {
  48. return $this->cargo_price;
  49. }
  50. public function setIsPrepay($isPrepay)
  51. {
  52. isset($isPrepay) ? $this->is_prepay = $isPrepay : trigger_error('is_prepay不能为空', E_USER_ERROR);
  53. }
  54. public function getIsPrepay()
  55. {
  56. return $this->is_prepay;
  57. }
  58. public function setReceiverName($receiverName)
  59. {
  60. !empty($receiverName) ? $this->receiver_name = $receiverName : trigger_error('receiver_name不能为空', E_USER_ERROR);
  61. }
  62. public function getReceiverName()
  63. {
  64. return $this->receiver_name;
  65. }
  66. public function setReceiverAddress($receiverAddress)
  67. {
  68. !empty($receiverAddress) ? $this->receiver_address = $receiverAddress : trigger_error('receiver_address不能为空', E_USER_ERROR);
  69. }
  70. public function getReceiverAddress()
  71. {
  72. return $this->receiver_address;
  73. }
  74. public function setReceiverLat($receiverLat)
  75. {
  76. isset($receiverLat) ? $this->receiver_lat = $receiverLat : trigger_error('receiver_lat不能为空', E_USER_ERROR);
  77. }
  78. public function getReceiverLat()
  79. {
  80. return $this->receiver_lat;
  81. }
  82. public function setReceiverLng($receiverLng)
  83. {
  84. isset($receiverLng) ? $this->receiver_lng = $receiverLng : trigger_error('receiver_lng不能为空', E_USER_ERROR);
  85. }
  86. public function getReceiverLng()
  87. {
  88. return $this->receiver_lng;
  89. }
  90. public function setReceiverPhone($receiverPhone)
  91. {
  92. !empty($receiverPhone) ? $this->receiver_phone = $receiverPhone : trigger_error('receiver_phone不能为空', E_USER_ERROR);
  93. }
  94. public function getReceiverPhone()
  95. {
  96. return $this->receiver_phone;
  97. }
  98. public function setCallback($callback)
  99. {
  100. !empty($callback) ? $this->callback = $callback : trigger_error('callback不能为空', E_USER_ERROR);
  101. }
  102. public function getCallback()
  103. {
  104. return $this->callback;
  105. }
  106. }