source: vendor/google/apiclient-services/src/Oauth2/Tokeninfo.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 2.8 KB
Line 
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
18namespace Google\Service\Oauth2;
19
20class Tokeninfo extends \Google\Model
21{
22 protected $internal_gapi_mappings = [
23 "expiresIn" => "expires_in",
24 "issuedTo" => "issued_to",
25 "userId" => "user_id",
26 "verifiedEmail" => "verified_email",
27 ];
28 /**
29 * @var string
30 */
31 public $audience;
32 /**
33 * @var string
34 */
35 public $email;
36 /**
37 * @var int
38 */
39 public $expiresIn;
40 /**
41 * @var string
42 */
43 public $issuedTo;
44 /**
45 * @var string
46 */
47 public $scope;
48 /**
49 * @var string
50 */
51 public $userId;
52 /**
53 * @var bool
54 */
55 public $verifiedEmail;
56
57 /**
58 * @param string
59 */
60 public function setAudience($audience)
61 {
62 $this->audience = $audience;
63 }
64 /**
65 * @return string
66 */
67 public function getAudience()
68 {
69 return $this->audience;
70 }
71 /**
72 * @param string
73 */
74 public function setEmail($email)
75 {
76 $this->email = $email;
77 }
78 /**
79 * @return string
80 */
81 public function getEmail()
82 {
83 return $this->email;
84 }
85 /**
86 * @param int
87 */
88 public function setExpiresIn($expiresIn)
89 {
90 $this->expiresIn = $expiresIn;
91 }
92 /**
93 * @return int
94 */
95 public function getExpiresIn()
96 {
97 return $this->expiresIn;
98 }
99 /**
100 * @param string
101 */
102 public function setIssuedTo($issuedTo)
103 {
104 $this->issuedTo = $issuedTo;
105 }
106 /**
107 * @return string
108 */
109 public function getIssuedTo()
110 {
111 return $this->issuedTo;
112 }
113 /**
114 * @param string
115 */
116 public function setScope($scope)
117 {
118 $this->scope = $scope;
119 }
120 /**
121 * @return string
122 */
123 public function getScope()
124 {
125 return $this->scope;
126 }
127 /**
128 * @param string
129 */
130 public function setUserId($userId)
131 {
132 $this->userId = $userId;
133 }
134 /**
135 * @return string
136 */
137 public function getUserId()
138 {
139 return $this->userId;
140 }
141 /**
142 * @param bool
143 */
144 public function setVerifiedEmail($verifiedEmail)
145 {
146 $this->verifiedEmail = $verifiedEmail;
147 }
148 /**
149 * @return bool
150 */
151 public function getVerifiedEmail()
152 {
153 return $this->verifiedEmail;
154 }
155}
156
157// Adding a class alias for backwards compatibility with the previous class name.
158class_alias(Tokeninfo::class, 'Google_Service_Oauth2_Tokeninfo');
Note: See TracBrowser for help on using the repository browser.