OrderExtInfo.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. namespace OpenOrderUpdateOrderStateNew;
  3. class OrderExtInfo{
  4. private $params=array();
  5. function __construct(){
  6. $this->params["@type"]="com.jd.gongxiao.kepler.domain.OrderExtInfo";
  7. }
  8. private $orderAmount;
  9. public function setOrderAmount($orderAmount){
  10. $this->params['orderAmount'] = $orderAmount;
  11. }
  12. public function getOrderAmount(){
  13. return $this->orderAmount;
  14. }
  15. private $sendTime;
  16. public function setSendTime($sendTime){
  17. $this->params['sendTime'] = $sendTime;
  18. }
  19. public function getSendTime(){
  20. return $this->sendTime;
  21. }
  22. private $skuList;
  23. public function setSkuList($skuList){
  24. $size = count($skuList);
  25. for ($i=0; $i<$size; $i++){
  26. $skuList [$i] = $skuList [$i] ->getInstance();
  27. }
  28. $this->params['skuList'] = $skuList;
  29. }
  30. private $orderId;
  31. public function setOrderId($orderId){
  32. $this->params['orderId'] = $orderId;
  33. }
  34. public function getOrderId(){
  35. return $this->orderId;
  36. }
  37. function getInstance(){
  38. return $this->params;
  39. }
  40. }
  41. ?>