Nessuna descrizione

Tokeninfo.php 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. class Google_Service_Oauth2_Tokeninfo extends Google_Model
  18. {
  19. protected $internal_gapi_mappings = array(
  20. "accessType" => "access_type",
  21. "expiresIn" => "expires_in",
  22. "issuedTo" => "issued_to",
  23. "tokenHandle" => "token_handle",
  24. "userId" => "user_id",
  25. "verifiedEmail" => "verified_email",
  26. );
  27. public $accessType;
  28. public $audience;
  29. public $email;
  30. public $expiresIn;
  31. public $issuedTo;
  32. public $scope;
  33. public $tokenHandle;
  34. public $userId;
  35. public $verifiedEmail;
  36. public function setAccessType($accessType)
  37. {
  38. $this->accessType = $accessType;
  39. }
  40. public function getAccessType()
  41. {
  42. return $this->accessType;
  43. }
  44. public function setAudience($audience)
  45. {
  46. $this->audience = $audience;
  47. }
  48. public function getAudience()
  49. {
  50. return $this->audience;
  51. }
  52. public function setEmail($email)
  53. {
  54. $this->email = $email;
  55. }
  56. public function getEmail()
  57. {
  58. return $this->email;
  59. }
  60. public function setExpiresIn($expiresIn)
  61. {
  62. $this->expiresIn = $expiresIn;
  63. }
  64. public function getExpiresIn()
  65. {
  66. return $this->expiresIn;
  67. }
  68. public function setIssuedTo($issuedTo)
  69. {
  70. $this->issuedTo = $issuedTo;
  71. }
  72. public function getIssuedTo()
  73. {
  74. return $this->issuedTo;
  75. }
  76. public function setScope($scope)
  77. {
  78. $this->scope = $scope;
  79. }
  80. public function getScope()
  81. {
  82. return $this->scope;
  83. }
  84. public function setTokenHandle($tokenHandle)
  85. {
  86. $this->tokenHandle = $tokenHandle;
  87. }
  88. public function getTokenHandle()
  89. {
  90. return $this->tokenHandle;
  91. }
  92. public function setUserId($userId)
  93. {
  94. $this->userId = $userId;
  95. }
  96. public function getUserId()
  97. {
  98. return $this->userId;
  99. }
  100. public function setVerifiedEmail($verifiedEmail)
  101. {
  102. $this->verifiedEmail = $verifiedEmail;
  103. }
  104. public function getVerifiedEmail()
  105. {
  106. return $this->verifiedEmail;
  107. }
  108. }