TradeLocationInfo.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * 查询交易 请求字段
  4. * TradeLocationInfo
  5. * PHP version 7.4
  6. *
  7. * @category Class
  8. * @package Lakala\OpenAPISDK\V3\Model
  9. * @author lucongyu
  10. * @link https://o.lakala.com
  11. */
  12. namespace SixShop\Lakala\OpenAPISDK\V3\Model;
  13. class TradeLocationInfo implements \JsonSerializable
  14. {
  15. protected $requestIp;
  16. protected $baseStation;
  17. protected $location;
  18. public function __construct($ip)
  19. {
  20. $this->requestIp = $ip;
  21. }
  22. public function setRequestIp($requestIp)
  23. {
  24. $this->requestIp = $requestIp;
  25. return $this;
  26. }
  27. public function getRequestIp()
  28. {
  29. return $this->requestIp;
  30. }
  31. public function setBaseStation($baseStation)
  32. {
  33. $this->baseStation = $baseStation;
  34. return $this;
  35. }
  36. public function getBaseStation()
  37. {
  38. return $this->baseStation;
  39. }
  40. public function setLocation($location)
  41. {
  42. $this->location = $location;
  43. return $this;
  44. }
  45. public function getLocation()
  46. {
  47. return $this->location;
  48. }
  49. public function jsonSerialize()
  50. {
  51. return [
  52. 'request_ip' => $this->requestIp,
  53. 'base_station' => $this->baseStation,
  54. 'location' => $this->location,
  55. ];
  56. }
  57. }