Param1.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace PlaceOrder;
  3. class Param1{
  4. private $params=array();
  5. function __construct(){
  6. $this->params["@type"]="com.jd.jdsmart.open.order.condition.JosOrderParam";
  7. }
  8. private $orderParam;
  9. public function setOrderParam($orderParam){
  10. $this->params['orderParam'] = $orderParam ->getInstance();
  11. }
  12. private $venderId;
  13. public function setVenderId($venderId){
  14. $this->params['venderId'] = $venderId;
  15. }
  16. public function getVenderId(){
  17. return $this->venderId;
  18. }
  19. private $appKey;
  20. public function setAppKey($appKey){
  21. $this->params['appKey'] = $appKey;
  22. }
  23. public function getAppKey(){
  24. return $this->appKey;
  25. }
  26. private $source;
  27. public function setSource($source){
  28. $this->params['source'] = $source;
  29. }
  30. public function getSource(){
  31. return $this->source;
  32. }
  33. function getInstance(){
  34. return $this->params;
  35. }
  36. }
  37. ?>