AccessTokenRequest.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. namespace Com\Pdd\Pop\Sdk\Token;
  3. use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
  4. /**
  5. * AccessToken request类
  6. */
  7. class AccessTokenRequest extends PopBaseJsonEntity
  8. {
  9. /**
  10. * @JsonProperty(String, "client_id")
  11. */
  12. private $clientId;
  13. /**
  14. * @JsonProperty(String, "client_secret")
  15. */
  16. private $clientSecret;
  17. /**
  18. * @JsonProperty(String, "grant_type")
  19. */
  20. private $grantType;
  21. /**
  22. * @JsonProperty(String, "code")
  23. */
  24. private $code;
  25. /**
  26. * @JsonProperty(String, "redirect_uri")
  27. */
  28. private $redirectUri = "http://www.baidu.com";
  29. public function __construct()
  30. {
  31. }
  32. public function getRedirectUri()
  33. {
  34. return $this->redirectUri;
  35. }
  36. public function setRedirectUri($redirectUri)
  37. {
  38. $this->redirectUri = $redirectUri;
  39. }
  40. public function getClientId()
  41. {
  42. return $this->clientId;
  43. }
  44. public function setClientId($clientId)
  45. {
  46. $this->clientId = $clientId;
  47. }
  48. public function getClientSecret()
  49. {
  50. return $this->clientSecret;
  51. }
  52. public function setClientSecret($clientSecret)
  53. {
  54. $this->clientSecret = $clientSecret;
  55. }
  56. public function getGrantType()
  57. {
  58. return $this->grantType;
  59. }
  60. public function setGrantType($grantType)
  61. {
  62. $this->grantType = $grantType;
  63. }
  64. public function getCode()
  65. {
  66. return $this->code;
  67. }
  68. public function setCode($code)
  69. {
  70. $this->code = $code;
  71. }
  72. }